Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add supports for immutable strings #285

Closed
jcubic opened this issue Jan 21, 2024 · 0 comments
Closed

Add supports for immutable strings #285

jcubic opened this issue Jan 21, 2024 · 0 comments
Milestone

Comments

@jcubic
Copy link
Collaborator

jcubic commented Jan 21, 2024

According to R7RS spec:

Every object that denotes locations is either mutable or
immutable. Literal constants, the strings returned by
symbol->string, and possibly the environment returned
by scheme-report-environment are immutable objects.
All objects created by the other procedures listed in this
report are mutable. It is an error to attempt to store a
new value into a location that is denoted by an immutable
object

So string literals and (symbol->string 'sym) should be immutable.

@jcubic jcubic added this to the 1.0 milestone Jan 21, 2024
jcubic added a commit that referenced this issue Jan 22, 2024
jcubic added a commit that referenced this issue Jan 29, 2024
@jcubic jcubic closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant