Re: Closures versus objects

Robbert Haarman <[email protected]>
Newsgroups gmane.comp.lang.lightweight
Message-ID <[email protected]>
On Thu, Feb 15, 2007 at 02:36:39PM -0500, [email protected] wrote:

> However if I understand the moral of the tale it is the theoretical
> isomorphism.  But is there no benefit in practice to having access to
> both?  A harder question to be sure about I think.

I wholly agree that both objects and closures are useful to have at ones 
disposal. However, that is not the same as saying both should be baked  
into the language. That depends on what other tools the language 
provides. If these tools are powerful enough that an elegant and 
efficient object system can be implemented using closures, or the other 
way around, or both can be implemented in terms of something else, 
closures and objects don't both need to be baked into the language.

Regards,

Bob

-- 
"Any sufficently complicated Java program requires a programmable IDE
to make up for the half of Common Lisp not implemented in the program
itself."

	-- Peter Seibel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFF1Ohnfb9wcmD+WN4RAoLgAJ9TC22NlbE+LIfzRYvebTLg65GytACfcwWV
ar9wyz/bI9lafBCoVfHStNk=
=9tLj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.