2 ms·
This is a better introduction to Nix than the official one. One minor nit: > Functional languages are composed of functions that take some input and produce so
by IshKebab 5y ago
This is a better introduction to Nix than the official one. One minor nit:
> Functional languages are composed of functions that take some input and produce some output. Every time a function is executed with a given input, it will return the same output.
Surely that is a property of pure languages, not functional ones. Maybe there are no pure imperative languages but I don't see why you couldn't have one. In fact it would probably make way more sense for Nix given how much easier imperative languages are to understand.
- avgcorrection 5y agoPure+imperative sounds useless. The imperative steps wouldn’t buy you anything. If you already can do let-bindings then you get nothing extra from imperative statements. Something more useful is an imperative language which only uses immutable values (strings, lists and so on).