top | item 39930594

(no title)

hasty_pudding | 1 year ago

you know how unsufferable it is when people bog a conversation down with semantics instead of ideas.

the point is obvious.

Being that every single language on Earth uses objects for non-primitive data structures that should be inferrable to a reasonable person.

a data structure in that context is clearly an ordered grouping of objects versus an unordered/loose grouping of objects.

discuss

order

recursive|1 year ago

I mean some languages don't.

I have ideas but I don't think I'm getting them through. Most of the problems functional proselytizers have with objects come from inheritance and mutability. Instance methods from classes don't seem to conflict with any of the functional tenets.

As for mutability, I think it's good sometimes. Dates should have been immutable, but Maps are a good fit for mutation. Immutable maps might make sense too sometimes.

But I find it difficult to communicate about any of this when fundamental terminology is used in novel ways.

hasty_pudding|1 year ago

what languages don't use objects to implement non-primitive data structures?

like a binary tree for example