3 ms·
OCaml uses .() for array access.
by cwzwarich 7y ago
OCaml uses .() for array access.
- aloknnikhil 7y agoRight. The difference being the "." The article proposes using basic function call syntax. That makes no sense to me. And with .(), you now have 3 characters to type instead of 2 with []. Obviously all of this is pedantic, but then again so is the article.
- jsjolen 7y agoAll of what the author said is what Scala does (author likes Scala). I've written a decent amount of Scala, it's fine. I've also written a lot of Common Lisp, where array access is done using aref. That was also fine.