Python syntax in Lisp and Scheme
Andrew Dalke
adalke at mindspring.com
Sun Oct 5 16:17:59 EDT 2003
Russell Wallace:
> Also Python's syntax has a whole category of pitfalls that
> C's lacks.
To be fair, there are a couple of syntax pitfalls Python doesn't
have that C has, like the dangling else
if (a)
if (b)
c++;
else /* indented incorrectly but valid */
c--
and left-right token disambiguation which turns
a+++b
into
a++ + b
(in early days of C, I did a =+1 only to find that =+ was
a deprecated version of += )
or in C++ makes it hader to do double level templates
because of the <<
> If Python feels right to you, then you should by all means use it.
Yup, it fits my brain, but my brain ain't yours.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list