News for hackers. Stuff that matters.
Re:“A closure is a poor man’s object; an object is a poor ma... by adamnemecek on Sunday April 30, 2017 @11:39PM (#14235436)
Scala programmers are laughing from the side lines.
Re:“A closure is a poor man’s object; an object is a poor ma... by throwa38282 on Sunday April 30, 2017 @11:41PM (#14235441)
Which is where they'll remain.

(snark begets snark)

Re:“A closure is a poor man’s object; an object is a poor ma... by kbd on Monday May 01, 2017 @12:17AM (#14235543)
As Scala didn't yet exist when this message was written, its author was missing the enlightenment Scala provides.

Would you please explain what about this amuses Scala programmers?

Re:“A closure is a poor man’s object; an object is a poor ma... by throwa38282 on Monday May 01, 2017 @12:58PM (#14239247)
Scala is largely a set of iterative improvements with a syntax that's designed to handle data workflows well. It's not a big deal, it's not that exciting, it doesn't use all of the latest technologies, and that's why I think it has a bright future.
Re:“A closure is a poor man’s object; an object is a poor ma... by kbd on Monday May 01, 2017 @03:31PM (#14240691)
This doesn't address closures vs objects at all.
Re:“A closure is a poor man’s object; an object is a poor ma... by noblethrasher on Monday May 01, 2017 @12:01AM (#14235485)
F# also has object expressions that are just as syntactically convenient as closures.
Re:“A closure is a poor man’s object; an object is a poor ma... by saghm on Monday May 01, 2017 @12:18AM (#14235548)
From what little I know of F#, it seems a lot like OCaml (as in, I don't know enough to know of any differences, other than that F# is a .NET language). From what slightly more I know about OCaml, objects are there, but almost nobody uses them and everyone pretends that they're not in the language. Is F# similar in this regard, or are objects considered fair game?
Re:“A closure is a poor man’s object; an object is a poor ma... by noblethrasher on Monday May 01, 2017 @12:31AM (#14235584)
Idiomatic F# code does tend to use pattern matching more than ad-hoc polymorphism, but objects are still very much considered fair game since the major value proposition of the language is its ability to leverage the .NET ecosystem.