by cuspycode · 8y ago · 0 comments
Example of immutable assignment: int n = 2
Example of reference to mutable value: ref int n = (heap int := 2)
However, in order to make Algol-68 code look more similar to Algol-60, they introduced backwards-compatible shorthands, so for example the declaration int n; was actually a shorthand for ref int n = (loc int);
This shorthand magic probably contributed to why Algol-68 syntax was perceived to be difficult.
Footnote: loc and heap were the two memory allocation operators available in Algol-68.