top | item 39931126

(no title)

hasty_pudding | 1 year ago

What languages on Earth implement non-primitive data structures without objects?

I guess maybe low level c and assembly where you implement everything as bits in physical memory?

discuss

order

recursive|1 year ago

It's mostly a question of what the language considers to be an object.

There's often a stack-/heap-allocated dichotomy. Some languages consider stack-allocated structs not to be objects. They have no reference identity. Assignment has copy semantics. C# is one such language.