[ prog / sol / mona ]

prog


Why don't lisps have list destructuring automatically in let

19 2020-09-19 13:15

https://srfi.schemers.org/srfi-201/srfi-201.html actually proposes something along these lines, that reminds me of Elisp pcase:

  (let* ((`(,a ,b) `(,c) (values '(1 2) '(3)))
         ((d e `(,f . ,_) (values 4 5 '(6 7)))))
    (+ a b c d e f))
21


VIP:

do not edit these