Sujet : Re: Writing HG LISP in Python, kind of
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lispDate : 10. Jun 2025, 08:53:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <1028o9h$14c2i$1@dont-email.me>
References : 1 2 3
User-Agent : XanaNews/1.18.1.6
Lawrence D'Oliveiro wrote:
On 14 Apr 2025 09:56:26 GMT, Stefan Ram wrote:
Lisp's cons cells are conceptual, not just syntax.
Is that why Lisp needs the separate concept of multi-value return, instead
of doing simple destructuring assignment as both Python and JavaScript are
able to do?
Gauche Scheme
gosh> (apply (^(a b c) (list c b a)) '(3 4 5))
(5 4 3)
gosh> (define three (values 3 4 5))
three
gosh> three
3