Semicolons in C#

The line terminator character will make you be able to break a statement across multiple lines.

On the other hand, languages like VB have a line continuation character (and may raise compile error for semicolon). I personally think it’s much cleaner to terminate statements with a semicolon rather than continue using undersscore.

Finally, languages like JavaScript (JS) and Swift have optional semicolon(s), but at least JS has a convention to always put semicolons (even if not required, which prevents accidents).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)