about to commit a #lisp heresy: car and cdr were obsoleted by destructuring-bind...
mx alex tax1a - 2020 (6) @atax1a@infosec.exchange
about to commit a #lisp heresy:
car and cdr were obsoleted by destructuring-bind and it's time to say goodbye
where the clhs goes wrong is preventing us from writing (defun teh ((a . b)) (cons b a)) and calling it as (teh (3 . 2)) to get (2 . 3) back, instead we have to write (defmacro teh ((a . b)) (cons ,b ,a))
if they just removed ordinary lambda lists and declared them all to destructure, we could be rid of a 60 year hangover from an ibm architecture