|
From: | Pietro Cerutti |
Subject: | Re: (declare (pure ...)) |
Date: | Sat, 10 Feb 2024 12:24:36 +0000 |
On 10 Feb 2024, at 11:10, Al <frm.ml@mailgw.com> wrote:
This is not how I reason about referential transparency. It is a property of functions applied to values, not variables. The fact that you can define x to different values or even rebind it in the scope of a let binding doesn't make (lambda (x) (+ x 1)) less referentially transparent. If you change the value of a slot of a vector, then the vector has a different value than before, even if the same name binds to the value. -- Pietro CeruttiI've pledged to give 10% of income to effective charities and invite you to join me. https://givingwhatwecan.org Sent from a small device - please excuse brevity and typos. |
[Prev in Thread] | Current Thread | [Next in Thread] |