Hacker News new | ask | show | jobs
by mtlmtlmtlmtl 1298 days ago
Ownership doesn't exist in the C language per se, but it is still an important concept you have to reason about when manually managing memory. I think that's what GP meant.

E.g if you add some object to a generic hash table as a key by pointer, you better treat that pointer as being owned by the hash table and not mutate it, or interesting stuff will happen.

1 comments

I mean sure, but we're not talking about C, we're talking about low-level languages, like IA32 assembly.
No one uses "low level language" to mean only assembler anymore. Besides, you also have to reason about ownership in assembler. It's not something you can really get away from at any level of the stack.