Re:Computer Science: Smart People Have Weird Hangups
by eru on Tuesday September 25, 2007 @04:53AM
(#59352)
I mean there are languages that have functions as first class data. Not wrapped up in objects. Think Lisp, Scheme, Haskell. Even Python can do this - otherwise map and filter would hardly work.
Because they're not. When you copy an object, you don't copy all of its methods; instead, you copy all of its function pointers.