Op 30-10-13 16:50, Grant Edwards schreef:
On 2013-10-30, Antoon Pardon <antoon.par...@rece.vub.ac.be> wrote:

Because it is a pain in the ass. Now suddenly my program doesn't work
because I somehow inserted a tab instead of spaces.

Then don't do that.

I'm only half-kidding.  Inserting incorrect tokens into program source
breaks programs in all languages.  The tricky bit is that in many
editors spaces and tabs look the same.  You can pick an editor that
provides a visual difference, or you can pick an editor that always
does the right thing, or you can stick with it until your fingers
learn to do the right thing.

But tab and spaces are not tokens. They are token seperators. You can
add as many tabs and spaces at the end of a line or between an
identifier and an operator and it won't make any difference.I can even
write the following.

a = (
     b    +   c )

where I can freely choose to use any number of tabs and spaces at the
start of the second line and python will not complain. So comparing
mixing tabs and spaces with inserting an incorrect token in other
languages doesn't make much sense to me.


Python made it's choice and I can live with that, but telling people
who prefer it had made an other choice that their brain is poisoned,
only shows you are unable to see the disadvantages.

Those of us who've been using Python for more than a few days think it
is you who are unable to see the advantages. ;)

I started using python when it was still 1.5.2, so I think I am using
it for more than a few days too.

--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to