Add support for reads from immutable slots/indexes #303
Labels
good first issue
Are you trying to have a good at SOMns? Start here!
help wanted
Would be great if you could help out here.
We should do AST caching of reads from immutable storage locations.
I tried this before, but not correctly: fe9140a
May only be beneficial for very few programs, and has the problem of caching values.
Though, for things like reading from outer objects, that might be beneficial.
The previous attempt was incorrect I think.
Though, by doing this, we can avoid the subclasses for immutable objects/arrays, and a lot of complexity with it.
By moving it into the AST, we could get a uniform handling.
The text was updated successfully, but these errors were encountered: