Place of BeginTransaction in code

  • Thread starter Thread starter Mukesh
  • Start date Start date
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
 
Back
Top