4 ms·
Is it Stockholm syndrome if I prefer semicolons over no semicolons? It gives me warm fuzzies in the belly knowing that as long as I've placed the semicolon it
by LoveMortuus 4y ago
Is it Stockholm syndrome if I prefer semicolons over no semicolons?
It gives me warm fuzzies in the belly knowing that as long as I've placed the semicolon it doesn't matter if I indented correctly or used the new line correctly.
I'm even one those weirdos that put the first squiggly bracket right after the statement(
if ( ... ) {
.
.
.
}
- eslaught 4y agoThere are languages like Lua that do not require semicolons and are also whitespace (and newline) insensitive. That comes with other tradeoffs, the main one being that Lua is forced to maintain a pretty restrictive grammar to remain unambiguous. There are only very limited expression statements, for example. But anyway, it exists and it addresses the points you specifically made in your comment.
- isitmadeofglass 4y agoMaybe. Is it Stockholm syndrome that I prefer indentation? It gives me warm fuzzies in the belly knowing that as long as I’ve indented correctly it doesn’t matter If I placed the semicolon.
- LoveMortuus 4y agoNice, but ... Can you write an entire program in one line? (Obviously a joke. I've never written a program in one line, but I do respect the art of 5he craft.)
- gonzus 4y agoI know you are joking, but one-liners in Perl are a long-standing tradition, and also the way many people learn some of the language's intricacies. Once you have your prototypical one-liner down pat, you grab it and make it into a properly formatted sub in your source code. For me, this is probably the main reason why I cannot abide space-sensitive languages such as Python.
- LoveMortuus 4y ago>For me, this is probably the main reason why I cannot abide space-sensitive languages such as Python. I completely understand you, I mean why would you ever want to use a _space_ when a perfectly functional and normal Tab already exists. (This is a joke ... ait' I'mma Tab out~)
- zerr 4y agoExcept that you can't see easily whether you intended correctly or not, especially during editing the existing block.
- xigoi 4y agoWhy couldn't you?