jwcolby
jwcolby at colbyconsulting.com
Tue Mar 16 10:35:15 CDT 2010
>You have to put ; at the end of each line Not true. Try to extend any syntactically valid line of code to one or more new lines. Break at any white space, as many times as you wish. At the very end of the "last" line make sure that you have a ; Compile. It will compile and run. > Just my opinion though. Not that I would never use C# or C++ because of the ;, just find it annoying. What I have discovered is that it helps to not "fight" any language, just accept the syntax and move on. There is waaaaaaay more important things in life than the ; at the end of a line of code, or a code block designated by curly brackets. I didn't invent the language (any of them), I am NEVER asked for my opinion (on any of them). Just accept the syntax of the language and move on. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Understand and agree with everything you said, except one item. I don't > have ANY experience with C#, only C++, so I am agreeing on principle > with your statements of learning curves. > > However, my exception is to the ; and _ issue. You have to put ; at the > end of each line, where as in VB, you only have to put _ at the end of a > line that you want to extend to the next physical line. The is just no > way, that you would end up typing more _ then you would type ;. > Personally, the only times I use an underscore is when I create a long > SQL string, something more then select x from y where z=1. Then I will > break it up into something more readable with _. But other than that, I > almost never 'extend' a line. From my POV, I just think that it's silly > that the compiler won't recognize a CRLF as the execution point, except > when it sees an underscore before it. > > Just my opinion though. Not that I would never use C# or C++ because of > the ;, just find it annoying. > > Drew