News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by josephcsible on Thursday May 28, 2020 @02:01PM (#23340337)
You only lose deferred execution in this case because it didn't go far enough away from OOP and toward FP. For example, since Haskell is a pure functional language, it can be lazy by default, meaning the function-only version transliterated there will have deferred execution.
Re:The use of `class` for things that should be simple free ... by cessor on Thursday May 28, 2020 @03:21PM (#23341289)
That sounds very plausible. But then, is OOP vs. FP an argument about verbosity in syntax to achive the same thing eventually?