Re: Closures versus objects

"Paul F. Dietz" <[email protected]>
Newsgroups gmane.comp.lang.lightweight
Message-ID <[email protected]>
Pascal Costanza wrote:

>
> On 16 Feb 2007, at 19:22, Gary King wrote:
>
>> If Lisp was re-written today, I'd guess that there would be more  use 
>> of generic functions for things like length. Then we would have:
>>
>> (length "butter")  ==> 6
>> (length #(1 2 3))  ==> 3
>>
>> and so on...
>
>
> That's basically what happened in Dylan.


There's nothing that prevents LENGTH from being implemented as a generic 
function in a compliant common lisp.  Programs that depend on it being 
generic will not be portable, however.

    Paul
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.