Re:NixOS is a good server OS, except when it isn't
by logicchains on Wednesday October 02, 2024 @02:36AM
(#41717797)
Way too much sugar/"idioms", which makes it hard for someone new to the language to figure out what a given piece of code is actually doing. Confusing use of semicolons for what almost every other language uses commas or newlines (or nothing) for. It's the same feeling as writing bash, and needing to always look up again exactly what the syntax is and where the semicolons go.
[ Parent
| on HN ]
Re:NixOS is a good server OS, except when it isn't
by soraminazuki on Wednesday October 02, 2024 @05:30AM
(#41718733)
Here's all the cases for using a semicolon. (estimated 30 seconds read)
1. At the end of local variables
let
a = 1;
b = 2;
in
a + b
result: 3
2. At the end of each attributes in an attribute set (a.k.a. dictionaries or key-value pairs) {
a = 1;
b = 2;
}
result: { a = 1; b = 2; }
3. with expressions with pkgs;
coreutils
result: (the coreutils attribute in the pkgs attribute set)
4. Assertions assert a != null;
a
result: (the value of a)
Now, you'll never be confused again.
Re:NixOS is a good server OS, except when it isn't
by SuperSandro2000 on Wednesday October 02, 2024 @06:31AM
(#41719073)
This sounds like a skill problem if you don't even know bash or rust or PHP syntax.