Conversation
Notices
-
Hallå Kitteh (clacke@social.heldscal.la)'s status on Tuesday, 22-Aug-2017 05:37:08 UTC Hallå Kitteh > Pairs (immutable)
http://web-artanis.com/scheme.html
No, they're not. Can they be made such? In !scheme ? In !guile ?
Quick search gave me no immediate answer (but I did find stuff like this).
A mail convo somewhere seemed to say that R6RS says everything is mutable except when explicitly not, and mentioned strings from symbol->string as immutable.-
Hallå Kitteh (clacke@social.heldscal.la)'s status on Tuesday, 22-Aug-2017 05:55:25 UTC Hallå Kitteh https://www.gnu.org/software/guile/docs/docs-2.0/guile-ref/rnrs-mutable_002dpairs.html
> All pairs in Guile are mutable
Ah, there you go then.
This should probably be in an ... ah, there it is. :-)
https://srfi.schemers.org/srfi-116/
Of course #sagittarius_scheme implements them :-) , but that's it. (assuming the correctness of the wiki)[0]
Also "The Racket system takes the radical approach of making Scheme's pairs immutable", so doesn't need #srfi116 .
I got curious about this because of something @cwebber (as himself) said about #8sync during that https://social.heldscal.la/notice/3492251 presentation.
Thanks, #lazyweb!
[0] http://practical-scheme.net/wiliki/schemexref.cgi?SRFI-116
-