HN user

hasty_pudding

168 karma
Posts0
Comments283
View on HN
No posts found.

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?

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.

You definitely need generic node objects to define the nodes.

You could have a completely stateless class/object that would manipulate those nodes and add them and remove them from the data structure.

What they mean is functions and data are separate, emulating a more functional paradigm and less mutable state.

The functions are kept pure and the data is kept pure.

As opposed to an object oriented programming style in which data and functions share the same object and create bug ridden state machines thats not as easy to reason about.

Some further explanation about this:

https://www.goodreads.com/quotes/702062-immutable-objects-ar...

a semi-nuanced discussion:

https://www.reddit.com/r/scala/comments/ejwsp1/is_mutability...

you can just Google mutable state to find more info.

separating your data structures and functions in many cases will make your code cleaner and more bug free.

My dog has pooped in my backyard for years and nothing but thick quality grass everywhere.

probably because most kibble is vegetable based and vegetable based poop is good for the grass.

maybe you fed your dog more meat?

if your dog's poop is killing the grass you're doing something seriously wrong with its diet.

Using an A.I. article from lawnlove.com as a source....okayyyy

This country has really gone downhill with education

My teachers would have yelled at me for having a source like that.

The founding fathers would think that allowing the government to have a database on ANYTHING is a bad idea.

Plus dog poop is ecologically good for the environment and fertilizes nature.

Youre right. Theres zero data.

As much as I can see the skyrocketing inequality in the USA this aint it.

Its a click bait article sourced on a click bait report.

The ironic part is that in one of the two charts they present shows that during the Biden administration, (who claims to support all the causes espoused in this paper), since 2020 inequality has skyrocketed at a rate never seen before.

https://webassets.oxfamamerica.org/media/documents/Corporate...