Groups | Search | Server Info | Login | Register
Groups > comp.lang.lisp > #60722
| From | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| Newsgroups | comp.lang.lisp |
| Subject | Re: Writing HG LISP in Python, kind of |
| Date | 2025-09-25 06:07 +0100 |
| Message-ID | <87a52jce82.fsf@parhasard.net> (permalink) |
| References | (2 earlier) <vtk6iu$2cj23$4@dont-email.me> <87ms6lc6jw.fsf@parhasard.net> <10b0cks$3i6j6$1@dont-email.me> <m3ikh82iub.fsf@pison.robolove.meer.net> <10b1kle$3tbca$2@dont-email.me> |
Ar an ceathrú lá is fiche de mí Méan Fómhair, scríobh Lawrence D’Oliveiro: > On Wed, 24 Sep 2025 16:55:16 +0530, Madhu wrote: > > > * Lawrence D’Oliveiro <10b0cks$3i6j6$1@dont-email.me> : > >> > >> a, b = b, a > > > > What does this ... have to do with bindings (either > > destructuring or multiple values)? > > Structuring on the RHS, destructuring on the LHS. All happens automatically, > without you even having to think about it. Well, you need to know the syntax. Lisp does not have infix operators. That’s a basic design decision. Once you’ve accepted that, (multiple-value-setq (a b) (values b a)) is not any less elegant than your example above. > Maybe more obvious if you put in the optional parentheses, to make explicit > that there is only a single expression on the RHS: > > (a, b) = (b, a) -- ‘As I sat looking up at the Guinness ad, I could never figure out / How your man stayed up on the surfboard after fourteen pints of stout’ (C. Moore)
Back to comp.lang.lisp | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Writing HG LISP in Python, kind of Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-14 23:43 +0000
Re: Writing HG LISP in Python, kind of "B. Pym" <Nobody447095@here-nor-there.org> - 2025-06-10 07:53 +0000
Re: Writing HG LISP in Python, kind of Aidan Kehoe <kehoea@parhasard.net> - 2025-09-23 20:28 +0100
Re: Writing HG LISP in Python, kind of Jeff Barnett <jbb@notatt.com> - 2025-09-23 17:22 -0600
Re: Writing HG LISP in Python, kind of Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-24 09:11 +0000
Re: Writing HG LISP in Python, kind of Madhu <enometh@meer.net> - 2025-09-24 16:55 +0530
Re: Writing HG LISP in Python, kind of tpeplt@gmail.com - 2025-09-24 14:59 -0400
Re: Writing HG LISP in Python, kind of Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-24 20:34 +0000
Re: Writing HG LISP in Python, kind of Aidan Kehoe <kehoea@parhasard.net> - 2025-09-25 06:07 +0100
Re: Writing HG LISP in Python, kind of Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-25 05:49 +0000
Re: Writing HG LISP in Python, kind of ram@zedat.fu-berlin.de (Stefan Ram) - 2025-09-26 20:12 +0000
Re: Writing HG LISP in Python, kind of Aidan Kehoe <kehoea@parhasard.net> - 2025-09-24 14:03 +0100
Re: Writing HG LISP in Python, kind of Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-24 20:33 +0000
Re: Writing HG LISP in Python, kind of Aidan Kehoe <kehoea@parhasard.net> - 2025-09-25 05:58 +0100
Re: Writing HG LISP in Python, kind of Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-25 05:50 +0000
csiph-web