this post was submitted on 19 Jul 2024
1 points (100.0% liked)
Linux
5234 readers
38 users here now
A community for everything relating to the linux operating system
Also check out [email protected]
Original icon base courtesy of [email protected] and The GIMP
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I know of several languages that just have
let x=y; <expr>
as an expression. It works fine, it's just more obvious syntax.The fact that it looks like a statement is kind of the point.
OCaml at least supports both forms. They didn't have to pick the weird one.