On Tue, Apr 1, 2014 at 3:32 AM, Marko Rauhamaa <ma...@pacujo.net> wrote: > Ian Kelly <ian.g.ke...@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 -- https://mail.python.org/mailman/listinfo/python-list