you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (1 child)

Functions are object. Data is stored as objects too. The inheritance madness may had gone a bit too far, but there should be better ways to fix it than a new religion.

[–]enefi[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

I personally happen to like pure FP (much more composable, testable and reusable compared to OOP in my opinion). But yeah, there are other ways. I was recently reading about Scala 3 and there was a bunch of new interesting things I quite missed few years back when I was writing in Scala, e.g. export clauses and context functions.