News for hackers. Stuff that matters.
Re:-h –Help -help Help –? –? by tomsmeding on Tuesday April 12, 2022 @03:50AM (#30999773)
> I also remember finding it quite strange to read types annotated with a space before the colon (e.g. `let x : int in`); a friend told me that this was due to OCaml's authors being French, which unlike English puts spaces in front of colons in prose.

Maybe, but I find it more likely that they just copied math notation. In mathematics (broadly, not just theoretical CS, also analysis), the type of something is indicated with an infix `:`, like `f : A -> B` is a function from A to B. This colon conventionally has equal spacing on both sides, like a regular infix operator.

Re:-h –Help -help Help –? –? by saghm on Tuesday April 12, 2022 @12:53PM (#31005196)
That's possible as well. I have no idea about the accuracy of my friend's claim, which is why I relayed it as hearsay rather than stating it as a fact I was sure about.
Re:-h –Help -help Help –? –? by baby on Tuesday April 12, 2022 @04:24PM (#31007812)
A lot of the decisions in OCaml seem related to the French language, which adds a space before the : (unlike in english).

There's the "Thing of int" weirdness also