4 ms·
> Though in most such languages, the distinction between object and value involves more than just mutability, and is more deeply associated with indirection of
by catnaroek 10y ago
> Though in most such languages, the distinction between object and value involves more than just mutability, and is more deeply associated with indirection of storage
Values, unlike objects, don't reside on memory, but rather in the semantics of the language. Of course, representations of values reside in memory. But that's an implementation detail. What matters is the abstraction the programmer is exposed to.
- dpark 10y agoSo your assertion is that objects are not an abstraction or defined by language semantics?
- catnaroek 10y agoObjects are a different abstraction: they're defined by the language's semantics to have a unique identity and be stored in memory exactly once at runtime. I won't blame objects for not being values.
- debaserab2 10y agoI think we might have just found the Ken M. of hacker news.