2 ms·
The syntax is not so unconventional compared to, say, modern javascript: ({ pkgs }) => { deps: [ pkgs.cowsay ] } or python: lambda pkgs: { deps: [pkgs.cowsay
by bspammer 5y ago
The syntax is not so unconventional compared to, say, modern javascript:
({ pkgs }) => { deps: [ pkgs.cowsay ] }
or python:
lambda pkgs: { deps: [pkgs.cowsay] }
I guess really the question is why create a new language rather than using an existing one? The language needed to be functional, lazy, and good at managing packages, and not much else. I guess they felt that no existing language fits the bill (Haskell does I guess but it's got a lot of baggage). I can't claim to know much about its history.