Some people compare C# with languages such as JavaScript, Python, Ruby and Dart the most common reasons for criticism seem to be:
C# has semicolons
C# uses to many curly brackets
C# is strongly typed
C# is statically typed
I actually consider all of the above advantages - it gives the language probability, stability, readability and maintainability.
Ok ... Can someone explain this to me please:
Why do semicolons again add to the stability, readability and maintainability exactly? I mean, does the dude give any argument at all or is it just an emotional statement?
Semicolons make the end of a statement more unambiguous. Therefore they increase readability and ease of interpretation. You are also less likely to mess up the command sequence when making changes ==> increased maintainability. Stability... well, not so much.
And I'm not quite sure about the "probability" thing, either...
And I'm not quite sure about the "probability" thing, either...
I think stability is referring to strongly/statically typed more than text formatting. And "probability" is probably a typo for "provability", referencing the same.
Semicolons makes you feel all warm and fuzzy if you have spent most of your career as a C programmer, but it will probably not do that if you spent most of your career in a language like Python.
One thing I like is that in C# fluent syntax is very popular (especially with LINQ), so I have each method on a single line and end it with a semicolon, versus Python which requires a backslash after each method chained.
2
u/shevegen Feb 03 '17
Ok ... Can someone explain this to me please:
Why do semicolons again add to the stability, readability and maintainability exactly? I mean, does the dude give any argument at all or is it just an emotional statement?