News for hackers. Stuff that matters.
Re:OOP vs. FP by horrido on Sunday April 30, 2017 @10:10PM (#14235099)
It's Uncle Bob who says objects are bags of functions. And this is not specific to Smalltalk nor dynamic languages. In Java, C#, and C++, objects are still just bags of functions.
Re:OOP vs. FP by noblethrasher on Sunday April 30, 2017 @10:21PM (#14235167)
Java and C# allow you to expose mutable fields, so objects are not strictly (or even ordinarily) just bags of functions.
Re:OOP vs. FP by crimsonalucard on Sunday April 30, 2017 @10:20PM (#14235161)
Yeah but objects in those languages are also bags of data, which he explicitly said they are not.