Re:CL21: An experimental project redesigning Common Lisp
by gjm11 on Friday February 20, 2015 @10:04AM
(#9080669)
Neat, but unfortunately the equivalent of CADR (second item in list: first-of-rest) is then FRST, which I think would just be too easy to misinterpret as meaning "first" when reading or writing code in a hurry.
[ Parent
| on HN ]
Re:CL21: An experimental project redesigning Common Lisp
by agumonkey on Friday February 20, 2015 @10:16AM
(#9080722)
I don't know if cr shortcuts are still used often nowadays (SICP advocates for abstraction layers, accessor functions, CL has destruct-bind, and ml uses pattern matching to dig into data).
Re:CL21: An experimental project redesigning Common Lisp
by gjm11 on Friday February 20, 2015 @11:10AM
(#9080992)
Nor do I -- but I'm pretty sure that those shortcuts are pretty much the only good reason for caring much about having names that resemble CAR/CDR in the way FST/RST do. (For any other purpose, I think FIRST/REST are obviously better than FST/RST.)