Is Python really "Lisp without parentheses"? So would it be easy to *implement* a lot of Python in Scheme/Lisp?
Roy Smith
roy at panix.com
Fri Jan 3 12:26:35 EST 2014
In article <mailman.4862.1388769050.18130.python-list at python.org>,
Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
> // C++
> Foo x = y;
> x.bar = 3;
>
> // Java
> Foo x = y;
> x.bar = 3;
>
> // Scheme
> (define x y)
> (foo-bar x 3)
>
> The syntax of the first two is identical, so the uneducated would
> assume they do the same thing.
This is one of the things that tripped me up when I first tried to learn
JavaScript. They syntax is superficially identical to C++, so I assumed
it worked the same way. Bad assumption.
More information about the Python-list
mailing list