Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

100% agreed. The moment I saw the “revised” syntax I had a real “what were they thinking” moment. You’re supposed to take the good parts of a good thing and add it to a bad thing, not the other way around!

Really, OCaml’s syntax is beautiful, unless you’re one of those people who loves to show off how adept they are at typing matching braces, parentheses, commas, and semicolons. Writing a little lambda in C++ is an impressive display of manual dexterity… [&](…,…){… return …; }; Who would rather write that than let f x y = … in?

The only way I’d improve OCaml syntax would be to add something like python style list comprehension.



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

Search: