3 ms·
I've always disagreed with pg's contention that objects are the poor man's closures, at least w.r.t. Common Lisp. I write a lot of Common Lisp code and almost e
by dreamcompiler 8y ago
I've always disagreed with pg's contention that objects are the poor man's closures, at least w.r.t. Common Lisp. I write a lot of Common Lisp code and almost every one of my programs uses CLOS in some way (and many of my programs use closures too; they're complementary). I'd probably never use CLOS if it limited me to single inheritance or single dispatch or prohibited reclassification like most OO systems do, but it doesn't. CLOS is OO without the arbitrary restrictions.