Place of BeginTransaction in code

M

Mark Wilden

Peter Duniho said:
IMHO, this is a VERY good thing, as the compiler has no way to know
whether a programmer is implicitly relying on some default behavior, or if
they really just forgot to initialize a variable before using it. The
latter is a common enough bug, and there's very little justification for
supporting implicit behavior.

This wouldn't bother me. I have no problem with the concept of default
values. After all, class instance fields are initialized to default values.
Why not local variables?

Again, I'm sure there are good reasons, but preventing bugs arising from
reliance on implicit behavior doesn't seem like one of them.

///ark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top