Groups | Search | Server Info | Login | Register
Groups > comp.lang.lisp > #60718
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | tpeplt@gmail.com |
| Newsgroups | comp.lang.lisp |
| Subject | Re: Writing HG LISP in Python, kind of |
| Date | Wed, 24 Sep 2025 14:59:05 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 37 |
| Message-ID | <87zfajad8m.fsf@gmail.com> (permalink) |
| References | <Python-20250412150133@ram.dialup.fu-berlin.de> <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> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Wed, 24 Sep 2025 18:59:06 +0000 (UTC) |
| Injection-Info | dont-email.me; posting-host="50d14dae6fbd920fa3dad8f032c3f8e2"; logging-data="4051962"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wbadUdP/Y+aQUEqxZL/zzKhRYPtEdZ2s=" |
| User-Agent | Gnus/5.13 (Gnus v5.13) |
| Cancel-Lock | sha1:na6V2OS5T4neSeS6hsycIcW1NKs= sha1:OabRIv+G6/u2i6jD3Ba72hbQqPw= |
| Xref | csiph.com comp.lang.lisp:60718 |
Show key headers only | View raw
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