Groups | Search | Server Info | Login | Register
Groups > comp.lang.lisp > #60718
| From | tpeplt@gmail.com |
|---|---|
| Newsgroups | comp.lang.lisp |
| Subject | Re: Writing HG LISP in Python, kind of |
| Date | 2025-09-24 14:59 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <87zfajad8m.fsf@gmail.com> (permalink) |
| References | (1 earlier) <code-20250414105007@ram.dialup.fu-berlin.de> <vtk6iu$2cj23$4@dont-email.me> <87ms6lc6jw.fsf@parhasard.net> <10b0cks$3i6j6$1@dont-email.me> <m3ikh82iub.fsf@pison.robolove.meer.net> |
Madhu <enometh@meer.net> writes:
>>
>> That’s an implementation issue, which is irrelevant to the way the
>> language works. Python lets you write
>>
>> a, b = b, a
>>
>> as an easy way to swap the values of variables, for example.
>
> What does this non-sequitur have to do with bindings (either
> destructuring or multiple values)?
>
> Mutation of bindings is handled in lisp through generalized references
> ("places") in a uniform way.
>
> (let ((a 10) (b 20)) (rotatef a b) (list a b))
>
> https://www.lispworks.com/documentation/HyperSpec/Body/m_shiftf.htm
> https://www.lispworks.com/documentation/HyperSpec/Body/05_a.htm
>
Did you mean to reference the documentation for ROTATEF?
‘m_shiftf.htm’ is the page that documents the macro SHIFTF.
‘m_rotatef.htm’ is the page that documents the macro ROTATEF.
At the www.ai.mit.edu website, they have expanded the ‘m_’
to ‘mac_’ to provide a longer hint that a page documents a
macro:
http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/mac_rotatef.html
--
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.
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