logoalt Hacker News

pxeger1today at 7:57 AM1 replyview on HN

This post is about data structures, which are values, but like variables, they also contain values. Therefore they can be mutable. You can argue that a mutable data structure is an object not a value, I suppose. But it can go in the same place as a value, so it makes sense to talk about subtyping.


Replies

mpweihertoday at 10:05 AM

Which is why "data structures" probably also belong in the "variables" column.