3 ms·
We already had JSON plus functions. We called it 'JavaScript' :)
by count 5y ago
We already had JSON plus functions. We called it 'JavaScript' :)
- jeofken 5y agoJavaScript also includes bad footgun-features like procedures, aka functions with effects. Neither Nix nor JSON have this feature, making Nix in this aspect closer to JSON than JavaScript is.
- gorjusborg 5y agoHa, nice! Seriously though, javascript is not a great language if you are looking for robust determinism. I can understand their decision to go elsewhere, given the domain and design.
- IshKebab 5y agoPeople have tried: https://github.com/jkcfg/jk https://github.com/jkcfg/jk But yeah I agree. The thing is, if all you need is robust determinism why do you need a full functional language with currying and other complex concepts? Google had the same problem for Bazel, and their solution (Starlark) is way easier to understand.
- gorjusborg 5y ago> The thing is, if all you need is robust determinism why do you need a full functional language with currying and other complex concepts? Yeah, that's a good point. I don't see any reason determinism requires a functional paradigm. That said, the functional language communities probably value determinism more than the others, currently. Choosing a language whose community values align with your needs can be a good thing.