r/ProgrammingLanguages • u/yang_bo • Feb 27 '26
Requesting criticism Are functions just syntactic sugar for inheritance?
https://arxiv.org/abs/2602.16291
37
Upvotes
r/ProgrammingLanguages • u/yang_bo • Feb 27 '26
View all comments
7
u/hairytim Feb 27 '26
I wish the paper included an operational semantics. I think the paper is a bit confused about the purpose of an operational semantics, and emphasizes that this language does not compute with reduction rules, but this misses the mark for me. An operational semantics is just an interpreter. Being able to present one succinctly is a huge win for clarity.
In particular, the paper says:
An operational semantics would give a precise algorithm for the construction of this tree. Presumably, it would need to (lazily) unfold the definitions of the fields of the records, which could easily be expressed in terms of reduction rules. I highly recommend working through the details.