in reply to Re: The world is not object oriented
in thread The world is not object oriented
Correction. Closures are a distinctly different concept than objects. And making effective use of closures takes a different set of design skills than laying out a good OO design. (Neither is better than the other. They just don't translate very well.)
A closure is distinctly simpler in behaviour than an object. They aren't a less capable building block since you can implement an object system with closures. But a single closure represents a far less rich set of behaviours than a single object, and closures offer fewer tools than objects do to channel and constrain your designs along natural paths. (Flexibility is definitely a somewhat mixed blessing.)
Therefore it is incorrect to claim that closures are one of Perl's OO systems.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: The world is not object oriented
by hardburn (Abbot) on Jan 03, 2004 at 04:00 UTC | |
by tilly (Archbishop) on Jan 04, 2004 at 00:13 UTC | |
by hardburn (Abbot) on Jan 05, 2004 at 01:08 UTC | |
by mojotoad (Monsignor) on Jan 05, 2004 at 21:58 UTC |
In Section
Meditations