In article <mailman.4862.1388769050.18130.python-l...@python.org>,
 Devin Jeanpierre <jeanpierr...@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.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to