merits of Lisp vs Python

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Dec 18 06:06:10 EST 2006


Kaz Kylheku a écrit :
> Bruno Desthuilliers wrote:
> 
>>André Thieme a écrit :
>>
>>>Bruno Desthuilliers schrieb:
>>>
>>
>>(snip)
>>
>>>>Both are highly dynamic. Neither are declarative.
>>>
>>>
>>>Well, Lisp does support some declarative features in the ansi standard.
>>
>>If you go that way, there are declarative stuff in Python too... But
>>neither Lisp nor Python are close to, say, SQL.
> 
> 
> False. Common Lisp can be made to support SQL syntax.
> 
And Python can be made to support something really close to it, cf 
SQLAlchemy. And Python has list comprehensions, which are mostly on the 
declarative side (ie : "what, not how"):

[x for x in range(100) if x % 2 == 0]

Etc, etc, etc...



More information about the Python-list mailing list