3 ms·
Unfortunately, in many situations you also need to ask noun-like questions about your closures. For things like loop bodies, conditionals passed to filters, co
by barrkel 17y ago
Unfortunately, in many situations you also need to ask noun-like questions about your closures.
For things like loop bodies, conditionals passed to filters, comparisons passed to sorts, etc., closures work very well. But when you start using a closure to e.g. represent an I/O endpoint (e.g. () => string for reading, string => () for writing to / from a console), you'll also want to do things like flush buffers.
- btilly 17y agoThat's why closures are a poor man's objects. :-)
- loup-vaillant 17y agoWhen, not why :-)