News for hackers. Stuff that matters.
Re:When FP? And When OOP? (2013) by thesz on Tuesday January 29, 2019 @09:13AM (#19026385)
You are talking about expression problem: https://en.wikipedia.org/wiki/Expression_problem

"Extend program with new data types and new functions"

It is quite well studied and solved in various languages. And, in my opinion, typical OO language solution does not come as especially succinct.

Re:When FP? And When OOP? (2013) by chriswarbo on Wednesday January 30, 2019 @12:55PM (#19037417)
> It is quite well studied and solved in various languages

I wouldn't say the expression problem is "solved"; various languages pick different tradeoffs, but the underlying problem is still there.

The best description I've seen of this is at https://www.tedinski.com/2018/02/27/the-expression-problem.h...