unicode as valid naming symbols

Ian Kelly ian.g.kelly at gmail.com
Tue Apr 1 05:58:00 EDT 2014


On Tue, Apr 1, 2014 at 3:32 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Ian Kelly <ian.g.kelly at gmail.com>:
>
>> On Tue, Apr 1, 2014 at 2:19 AM, Antoon Pardon
>>> Which will give me the normal result. Maybe I missed it but I haven't
>>> heard scheme being called an unreadable language.
>>
>> Well, I have, but I think that usually has more to do with an excess
>> of parentheses.
>
> If you count braces as parentheses, there are about the same number of
> parentheses in scheme and C:
>
>     int main()
>     {
>         printf("Hello world\n");
>         return 0;
>     }
>
>     (define (main)
>         (format #t "Hello world\n")
>         0)
>
> C: 6
> Scheme: 6

On the other hand, you recently posted this snippet to the list:

        ((let ((n 3))
           (let ((f (lambda () n)))
             (set! n 7)
             f)))

Setting aside the fact that C doesn't have anonymous functions, I'll
approximate it as best I can:

static int n = 3;

int f()
{
    return n;
}

int main()
{
    n = 7;
    return f();
}

C: 10
Scheme: 20



More information about the Python-list mailing list