News for hackers. Stuff that matters.
Re:Why functional programming matters by novembermike on Tuesday April 18, 2017 @03:04PM (#14141852)
You do realize that the object model is just data bundled with functions, right? If I'm using Erlang I can pass in a map that has something like #{ data => [(data)], methods => [(functions)] }. The object style approach is orthogonal to FP.

EDIT: Just to be clear, I don't think this is a good idea. It's usually better to pass in one or more data structures and one or more first class functions separately. I'm just saying that it's not too different.

There are no comments on this comment yet.