News for hackers. Stuff that matters.
Re:OCaml Modules: Think Immutable Singletons by hbbio on Sunday May 24, 2015 @05:24PM (#9597681)
Hacker News, circa 2015.

Someone writes a blog post, using JavaScript to explain how modules are used in OCaml. Just in the case it changed during the last 20 years or so.

Edit: I'm glad more people learn about OCaml. A few years ago, I kept hearing that no one will contribute to my open source OCaml projects...

Re:OCaml Modules: Think Immutable Singletons by Avshalom on Sunday May 24, 2015 @05:56PM (#9597783)
Well... yeah. What do you want, it's trying to explain by analogy. If it used OCaml it'd be "ocaml modules are simple, they're just like ocaml modules" which is... unhelpful. They could have used C but then they'd have to implement a singleton pattern in C first at which point thats like a dozen things to explain.
Re:OCaml Modules: Think Immutable Singletons by detaro on Sunday May 24, 2015 @06:29PM (#9597876)
You're glad about more people learning OCaml... but make fun of attempts to help people learn OCaml by comparing it to things they might know already?
Re:OCaml Modules: Think Immutable Singletons by pekk on Monday May 25, 2015 @03:42AM (#9599044)
Chances are that no one will contribute to any given project in any popular language either.