4 ms·
I like so much about Nix and the Nix philosophy, but I'm a bit stuck on the perceived ugliness of the Nix language. It just feels so ... icky to me. I don't t
by freedomben 2y ago
I like so much about Nix and the Nix philosophy, but I'm a bit stuck on the perceived ugliness of the Nix language. It just feels so ... icky to me. I don't typically feel that way about languages. Even Erlang (while being bizarre) didn't/doesn't bother me that much.
Does anybody else have this problem? How do you get over it? (it seems like such a ridiculous reason to avoid picking up an otherwise good tech)
- bitwize 2y agoYou may wish to give Guix a try. Nix philosophy, but the language is Scheme.
- tombert 2y agoI think at this point it's a quasi Stockholm Syndrome for me, because I've grown to genuinely kind of like it. I started making my own packages for Nixpkgs, and I have made dozens (maybe hundreds) of flakes, so I'm just kind of used to the language now. It's an ugly language, but once you write a lot of it, you get used to its quirks. And there are some niceties, like being able to define a variable and use that variable to access and define fields, kind of like JavaScript: { blah = { ${myVar} = "something"; }; } It's kind of fun to do that, because you can use something like flake-utils that lets you loop through all the platforms that Nix supports and reuse your structures. Otherwise it's just kind of an awkward functional language. You get used to it.