Hacker News new | past | comments | ask | show | jobs | submit login

> One is the use of the full stop as an expression terminator, as in English, instead of the semicolon.

That’s something people complain about when looking at Erlang code. Thanks to its Prolog heritage, it uses commas, semi-colons, and full stops to terminate statements.

It’s actually very easy to remember which is which, despite the general angst, because they are directly analogous to those punctuation marks’ usage in English.

Commas indicate a continuation of statements, semi-colons separate clauses within a function, and full stops complete a function definition.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: