News for hackers. Stuff that matters.
Re:Pascal at Apple by kabdib on Saturday July 22, 2017 @12:55AM (#14825475)
Good points, all.

I think I misliked Pascal's nested procedures because they weren't true lambdas; once the outer procedure returned, the inner procs were no longer callable (just one contiguous stack, right?). Early-on, using C++ lambdas, I found myself making the same mistake in a design for some asynchronous completion stuff. Embarrassing; C++ and Pascal are not JavaScript/Lisp/Scheme/Smalltalk :-)

Re:Pascal at Apple by asveikau on Saturday July 22, 2017 @12:39PM (#14827987)
You can assign a c++ lambda into an object for later use, you just have to be careful about capture by reference and capturing pointer types... But the capture using the copy constructor is handy here, eg. you can copy a shared_ptr and get reference counted captures...

It's funny in this way how c++ lambdas lead to very c++ specific issues and uniquely c++-ish solutions. I think the wackiness of the closure capture mechanism is the best example of this I can think of.

Re:Pascal at Apple by sidegrid on Sunday July 23, 2017 @12:08PM (#14832919)
Misliked?
Re:Pascal at Apple by coldtea on Sunday July 23, 2017 @12:33PM (#14833058)
Mind blowing factoid: not everybody on the internet is a native english speaker.
Re:Pascal at Apple by kabdib on Sunday July 23, 2017 @02:25PM (#14833634)
Not sure what your point is, but it's a real word :-)