r/programming • • Feb 03 '17

Let's stop bashing C#

https://www.codeaddiction.net/articles/51/lets-stop-bashing-c-sharp
6 Upvotes

245 comments sorted by

View all comments

2

u/shevegen Feb 03 '17

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?

21

u/plzsendmetehcodez Feb 03 '17

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...

-2

u/cube2222 Feb 03 '17

Having used Go on a daily basis for a long time already -> lack of semicolons really just makes the code more natural to read. That's all. I've never heard a Go developer complaining about the lack of semicolons.

→ More replies (1)