In the Racket docs (https://docs.racket-lang.org/reference/pairs.html#(part._.Pair_.Accessor_.Shorthands)), these pair accessor shorthands go all the way up to four levels of nesting: caar, cadr, cdar, cddr, caaar, caadr, cadar, caddr, cdaar, cdadr, cddar, cdddr, caaaar, caaadr, caadar, caaddr, cadaar, cadadr, caddar, cadddr, cdaaar, cdaadr, cdadar, cdaddr, cddaar, cddadr, cdddar, cddddr.
BUT WHY STOP THERE?!? Why can't I write `caaaaaaaaar` and have it just work?
@lindsey You would appreciate this, from the professor I TA’d for: https://people.eecs.berkeley.edu/~bh/61a-pages/Lib/pronounce.scm
@[email protected] https://docs.racket-lang.org/cadnr/index.html
@dabeaz writes " We got a lot of weird looks for that."
This reminds of a story from the last millennium.
I was in the queue with various people for lunch, at Kings Buildings in Ediburgh, including Alex Simpson, John Longley, Samson Abramsky and Gordon Plotkin, and I was saying verbally something about "continuous functions from X to two".
Then somebody asked "what is 'two'". And I said "one plus one", which was clear to them (they wanted to know whether I was talking about the Sierpinski space or the two-point discrete space).
But we got, repeating your words, "weird looks for that" from everybody else in the queue.