Python syntax in Lisp and Scheme
Pascal Costanza
costanza at web.de
Sat Oct 18 08:11:13 EDT 2003
Brian Quinlan wrote:
> Rayiner Hashem wrote:
>
>>Are equally natural in their respective syntaxes. However, if you have
>
> a
>
>>short, simple function:
>>
>>(defun foo (x) (+ x 2))
>>
>>is still perfectly natural, while:
>>
>>int foo(int x) { return x + 2; }
>>
>>looks a little weird. Most people would write the above similarly to
>
> the
>
>>first example, which makes it much longer. Block-structured languages
>
> in
>
>>general tend to suffer from this problem.
>
>
> But Python doesn't
>
> def foo(x): return x + 2
Now, we have walked into the trap of the specific example. ;)
Pascal
More information about the Python-list
mailing list