News for hackers. Stuff that matters.
Re:Rust's Ugly Syntax (2023) by eterps on Friday August 30, 2024 @02:44AM (#41398260)
Just give me Rattlesnake or CrabML and I'll stop complaining :-)
Re:Rust's Ugly Syntax (2023) by stavros on Friday August 30, 2024 @04:19AM (#41398733)
What's Rattlesnake? I can't find anything at all online.
Re:Rust's Ugly Syntax (2023) by frankie_t on Friday August 30, 2024 @04:21AM (#41398742)
I think he's referring to Python, just like other made up names probably refer to Java, Js, C++ and OCaml.
Re:Rust's Ugly Syntax (2023) by stavros on Friday August 30, 2024 @04:25AM (#41398764)
Ahh I see, I didn't notice that name in the article, thank you.
Re:Rust's Ugly Syntax (2023) by awesomebytes on Friday August 30, 2024 @03:22AM (#41398443)
+1
Re:Rust's Ugly Syntax (2023) by frankie_t on Friday August 30, 2024 @04:20AM (#41398736)
Wanted to say the same. He straight up conjured a good looking code in CrabML as an example of similar level of "ugliness", while it has about three times less syntax noise.
Re:Rust's Ugly Syntax (2023) by hyperpape on Friday August 30, 2024 @05:42AM (#41399149)
It ends in ";;". If that's not a typo, and it's semantically significant that there are two semicolons instead of one, that sounds quite finicky.
Re:Rust's Ugly Syntax (2023) by Joker_vD on Friday August 30, 2024 @07:34AM (#41399713)

     The answer to the question “When do I need the ;; within OCaml source code?” is never.

     It's not a part of the language and is only used by the interpreter as an end of input mark. 

     Historical note: In CAML Light, the predecessor of OCaml, double semicolons were mandatory. For this reason they are quite common in old code originally written in CAML Light or written in the early days of OCaml. These days they are considered a bad style. 
from https://baturin.org/docs/ocaml-faq/#the-double-semicolon
Re:Rust's Ugly Syntax (2023) by baq on Friday August 30, 2024 @04:31AM (#41398785)
Choked on my coffee when I got to Rattlesnake. Great name.