5 ms·
My biggest frustration with Nix is the lack of typing. Writing anything more than the basics, I feel like I quickly run into an issue of not being able to reaso
by Niksko 3y ago
My biggest frustration with Nix is the lack of typing. Writing anything more than the basics, I feel like I quickly run into an issue of not being able to reason easily about what structures I'm manipulating, and I haven't gotten very far by trying to lean on the editor I'm using either.
- abathur 3y agoThere's some prospect of Nickel (https://github.com/tweag/nickel https://github.com/tweag/nickel) meeting this need, though haven't tried it and can't really vouch. Typing might be really helpful for building your own layers up, but I don't know if it can meaningfully help with problems around consuming existing Nix ~APIs.
- evanjrowley 3y agoAnother new contender in the typed Nix space if Garn, which allows one to interact with Nix via TypeScript: https://news.ycombinator.com/item?id=38112416 https://news.ycombinator.com/item?id=38112416
- wharvle 3y agoSame. At this point I've resolved I'm never again writing in a language without static typing, unless someone's paying me to. Too much of a headache.