3 ms·
I love it when it's optional like in Ruby. If I accidentally put it in, it's cool.
by AznHisoka 14y ago
I love it when it's optional like in Ruby. If I accidentally put it in, it's cool.
- magice 14y agoThe thing is, if the semicolon is optional, you can't write more complex expression. For example, if you want to sum a bunch of numbers, you can't have the plus signs at the beginning of the lines anymore.
- Sarkar 14y agoI know what you mean - same in JS. It was a little unnerving for me to write code in JS without semi colons after every line. It gets to the point where sometimes I'll chat on facebook and after finishing a thought I'll type ';' at the end of a sentence. Weird, I know.