Re: The Liskov Substitution Principle in the Rationale Marc Nieper-Wißkirchen 14 May 2020 21:30 UTC

Am Mi., 13. Mai 2020 um 15:59 Uhr schrieb Marc Nieper-Wißkirchen
<xxxxxx@nieper-wisskirchen.de>:

[...]

> What I can think of is a procedure `freeze` that takes a general
> Scheme object and returns an immutable Scheme object that is `equal?`
> to it. This can be efficiently implemented by copying the data
> structure to a memory area that can be mprotected to be read-only.

Such a procedure should also come (or only come) in a linear-update
variant `freeze!`.