3 ms·
fst/rst, although having the difference in the middle also seems aesthetically appealing to me.
by philh 12y ago
fst/rst, although having the difference in the middle also seems aesthetically appealing to me.
- gjm11 12y agoNeat, 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.
- agumonkey 12y agoI 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).
- gjm11 12y agoNor 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.)
- agumonkey 12y agoGood catch. While writing a toy lisp I looked for other names with structural qualities, actually not names, more symbols since these weren't words. Things like Oo/oO, xo/ox or _/__.