News for hackers. Stuff that matters.
Re:Hedy: Textual Programming Made Easy by keyle on Monday January 27, 2025 @05:05AM (#42839342)
Nice, I was unaware of this. Take OCaml for example, it was primarily developed by the French if I recall

    OCaml was written in 1996 by Xavier Leroy, Jérôme Vouillon, Damien Doligez, and Didier Rémy at INRIA in France
Yeah, but they didn't write keywords in French, they went straight to `let`, `rec`, `if`, `then`, `else`... Because they're just keywords, they could just be punctuations; so as long as you don't go full brainfck.
Re:Hedy: Textual Programming Made Easy by Athas on Monday January 27, 2025 @05:17AM (#42839418)
The comments were quite often in French, however! Until relatively recently, the OCaml compiler would also sometimes emit error messages in French in some obscure cases.
Re:Hedy: Textual Programming Made Easy by octachron on Monday January 27, 2025 @11:10AM (#42842594)
How long ago was this "relatively recently"? When I translated all the remaining French comments in the OCaml compiler nearly 10 years ago, there were already no warnings nor error messages in French.
Re:Hedy: Textual Programming Made Easy by Athas on Tuesday January 28, 2025 @06:55AM (#42851354)
Most recent I remember was in 2011: https://github.com/ocaml/ocaml/issues/5419
Re:Hedy: Textual Programming Made Easy by octachron on Tuesday January 28, 2025 @10:02AM (#42853097)
Note that this is an error message from the ocamldoc tool, and not an error message from the OCaml compiler itself. Funnily enough, looking that the repository history, this French error message was introduced in the very first version of ocamldoc in 2002 and went undetected (or unreported) for 9 years. Thanks for the historical tidbit!
Re:Hedy: Textual Programming Made Easy by Yoric on Monday January 27, 2025 @05:18AM (#42839426)
I'm sure there is, somewhere in the deep recesses of the Internet, a camlp4 or camlp5 syntax extension to replace `let`, `rec`, `if`, `then`, `else` with `soit`, `réc`, `si`, `alors`, `sinon` :)