3 ms·
Am I the only one that really doesn't mind semi-colons? I find it to be a drawback when they aren't required, because it introduces unnecessary ambiguity. If I
by delecti 12y ago
Am I the only one that really doesn't mind semi-colons?
I find it to be a drawback when they aren't required, because it introduces unnecessary ambiguity. If I have to wrap a long line, then there's extra syntax I have to remember to make sure the language realizes that this is all "really" a single line.
- Randgalt 12y agoWelcome to the new world of no semicolons and not seeing the type of a thing.
- k__ 12y agoCan you elaborate? I write LiveScript and never had a problem with this. I prefer lesser symbols on screen. On the other hand, LS has syntactically significant whitespace which lets you indent wrapped stuff so the compiler sees that it still belongs to the previous command, in many cases.
- delecti 12y agoSpecifically in Python, if you're appending lines of text, for example, then you have to add a \ before the newline. Also in Javascript if you omit the semi-colon then sometimes the interpreter gets confused and functionality gets jumbled. Sorry if that's not that specific. I just in general prefer semi-colons being required, because then it fails fast rather than producing subtle bugs later.