[I know that I will probably cry for it, but I have to say it anyway]
As a predominantly vb programmer, there is one thing that annoys me to the bone. In my opinion, parens should be optional, and bindings are required. If this is too much to ask, then Microsoft can โborrowโ from vb to C # by introducing the equivalent of C # vb Then.
But why bother then? Microsoft has developed C # based on C, C ++, and Java, all of which set the if condition in parens, so why will C # be different?
Edit
Honestly, I think that based on C # 4 "accepting optional and named parameters", a function that has always been in VB (at least with VB6), the next version of C # (C # 5.0) introduce a "new" function , so you do not need to enter unnecessary parentheses.
So how is the triple if condition ? truePart : falsePart if condition ? truePart : falsePart having if condition then something or for those who are not in C # similar to vb, if condition do something would not be a bad idea.
Alex essilfie
source share