Hacker News new | ask | show | jobs
by debugnik 11 days ago
The 'in' keyword is purely syntax, like semicolons/newlines or braces in your language of choice.
1 comments

Yeah and it's fucking ugly and unreadable, it shouldn't be allowed.
That was my reaction at first, but I got used to it pretty quickly. Some of the other bizarre syntax bothered me for much longer, like using semicolons for list separators, eg [1;2;3] instead of [1,2,3].

I briefly tried to use Reason since it “fixed” a lot of my biggest issues with the syntax, but it wasn’t worth it overall so I went back to plain ocaml pretty quickly.

I didn’t look very closely at F# at the time, but I remember thinking it looked like “ocaml with more normal syntax”.