27
submitted 2 months ago by mac@programming.dev to c/linux@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] FizzyOrange@programming.dev 0 points 2 months ago

Nix being an expression based functional language, it doesn’t really make sense to have something like let x=y; since this looks to most people like a statement

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.

it follows the traditions of other functional languages such as the ML

OCaml at least supports both forms. They didn't have to pick the weird one.

this post was submitted on 19 Jul 2024
27 points (93.5% liked)

Linux

4921 readers
291 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS