3 ms·
Scheme has little to offer out-of-the-box as a basis for Nix. It has no convenient syntax or suitable implementation for extensible records, which is the core d
by willtim 10y ago
Scheme has little to offer out-of-the-box as a basis for Nix. It has no convenient syntax or suitable implementation for extensible records, which is the core data type of Nix.
- qwertyuiop924 10y ago'((extensible-records . being-key-value-maps?)) Alists are fast enough for this, and they ARE k/v maps. And support for them is in rnrs.
- vertex-four 10y agoThey kind of suck syntax-wise though. There's no visual difference between them and any other list.
- qwertyuiop924 10y ago'(this is a list) '((this . is) (an . alist)) Looks pretty distinct to me.
- vertex-four 10y ago'((this . is) (a . list) (of . cons)) '((this . is) (an . alist)) Hey look, my list of cons looks incredibly like an alist... funny that.
- qwertyuiop924 10y agoSo an alist looks like an alist. I'm shocked. and alist is a list of pairs. That's what it is. Semantically, there isn't really another reason to use the format.