Re:Computer Science: Smart People Have Weird Hangups
by cperciva on Monday September 24, 2007 @05:07PM
(#59067)
> Why not [just use] functions as first class data?
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.
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.
Why not use just functions as first class data?