merits of Lisp vs Python

André Thieme address.good.until.2007.feb.05 at justmail.de
Sat Dec 16 08:49:49 EST 2006


Paul Rubin schrieb:
> Kirk  Sluder <kirk at nospam.jobsluder.net> writes:
>> Personally, I've always preferred use the imperative to describe 
>> basic math rather than the passive. This would seem to map better to 
>> RPN than infix. 
> 
> For writing down complicated, nested expressions too?  That's very
> unusual.  E.g.
> 
>   n! = (n/e)**n * sqrt(2*pi*n) * (1 + (1/12n)) * ...
> 
> vs. the same thing in Lisp notation, and that's not even so complicated.

As I said earlier: if there are three formulas in your code, then it
doesn't matter too much.
If you write more then use infix in Lisp. It even looks better than Python:

[7x₆ + 9π³ - 6ˣ]

or

(if [√2 ≈ 1,41]
     (print "Yay"))

Or mathematical reasoning:
(proof [∃ x∈M  ∀ y∈Q : x≤y])

So what?


André
-- 



More information about the Python-list mailing list