Monday, May 15, 2006
If you've ever wondered why the increment and decrement operators weren't included in VB.NET, here's a post explaining why.

Coming from the C/C++ world, I still miss the increment (++) and decrement (--) operators, but I definitely understand why after reading. Basically, it has to do with the fact that assignments in VB are done at the statement level instead of the expression level. If you're not following, consider how you can have things like (if (x = 5) ...) in C, but you can't in VB because the = sign is used for both assignment and equality, depending on the STATEMENT. There isn't any problems in C, because equality is checked with the == sign.

Interesting.
Monday, May 15, 2006 2:54:27 PM (Central Standard Time, UTC-06:00)
I have always been a fan of separate assignment and equality operators...
cneller@gmail.com (Colin Neller)
Comments are closed.