4 ms·
> Further, when a variable is evaluated, you get both its value and a reference to it. This allows variables to be evaluated before being assigned to in assignm
by fasquoika 8y ago
> Further, when a variable is evaluated, you get both its value and a reference to it. This allows variables to be evaluated before being assigned to in assignments. This sounds weird, but it works with the above. You can make a "set" function which does the same thing as assignment
Have you read Strachey's "Fundamental Concepts in Programming Languages"[1]? You seem to have rediscovered lvalues.
[1] https://www.itu.dk/courses/BPRD/E2009/fundamental-1967.pdf https://www.itu.dk/courses/BPRD/E2009/fundamental-1967.pdf
- jhallenworld 8y agoI'm explaining this badly. All I mean is that when a function returns a variable, it's an l-value.