Hacker News new | ask | show | jobs
by josephcsible 2051 days ago
What functionality can you only get with objects, and not with anything that is part of the FP paradigm?
1 comments

For things that naturally have complex statefulness ... like User Interfaces.

HTML DOM as a crude example, is a big 'tree of state' whereupon OO would lend well to the nature of the noes on that tree for example.

When you're crunching data and the entire process is literally some kind of transform FP I think more intuitively maps to the situation.

On the DB side, there is a niche of OODBs that exist and used particularly in networking because the persisted state there is really topological, in which case it doesn't always lend well to RDBMS.