News for hackers. Stuff that matters.
Re:Closures and Objects Are Equivalent by sitkack on Sunday April 12, 2015 @08:33PM (#9365310)
If you think of a closure as only returning a reference to a function, but a closure can return anything. What if my closure returns an ssh connection to a new machine? A database? A program that generates programs? A hash of functions specialized to my calling arguments? How is a the function that returns a closure different from a constructor?

There are no comments on this comment yet.