Again. if a=b { do something } What's unclear here ? However, the compiler stops me with the question - do you want to assign b to a ? No, I don't. Isn't it obvious what I want to do ? VB doesn't need this handholding. Also, why do I need to type if (a=b) { do something } and what do those fing paranthesis do there ? If I wanted to better delimit the clauses, for human eyes benefit only, I would do that, as in, say, if ((a=b) && (c=d)) { } Also... operators. I really don't care how awkwardly they were named in C, C++, etc, but really, people, baggage should NOT be carried forward && instead of AND ? || instead of OR ? != instead of <> ! instead of NOT ? No, really, what am I ? A compiler ? My hands won't fall off if I type (cond1) AND (cond2) instead of (cond1) && (cond2). There's one extra character and it's so much clearer ! Why do so many people love cryptic code ? It's not like the writer of that code will seem to be any smarter ! Also, the compiler stops and hits me with a brick saying that in the line variable1 = "abc" variable2 = 5; I have missed the ending ; on the first line. Well... if you compiler are so sure about my missing of that fing semicolon, why don't you put it there ? Warn me, color it bright red, make it blink, but put it there if you are so sure I've missed it. Help me a bit. I write in C#, and I really like it, don't get me wrong. But that doesn't make me not see these (and others) things.
R
raducu1
@raducu1
Posts
-
Celebrity Deathmatch (VB.NET vs C#) -
Celebrity Deathmatch (VB.NET vs C#)Yes, you are VERY turn ! :((
-
Celebrity Deathmatch (VB.NET vs C#)In VB.NET:
With longDescriptiveObjectName
.prop1 = ...
.prop2 = ...
.prop3 = ...
end withIn C#:
longDescriptiveObjectName.prop1 = ...
longDescriptiveObjectName.prop2 = ...
longDescriptiveObjectName.prop3 = ...Which one is more verbose, then ?