semicolon at end of python's statements
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Mon Sep 2 10:57:35 EDT 2013
On Mon, 02 Sep 2013 20:14:40 +1000, Chris Angelico wrote:
> On Mon, Sep 2, 2013 at 7:52 PM, Steven D'Aprano <steve at pearwood.info>
> wrote:
>> Instead, we would have spent 100 times as much time and energy debating
>> the One True Indentation Scheme, akin to the brace wars that went on
>> for *years* in the C community. And still haven't completely gone.
>
> You mean like debating tabs vs spaces in Python code?
Yes, only worse. There's only two choices between tabs and spaces
("Tabs!" "No, spaces!"). With optional indentation, there has to be some
sort of marker, like braces or BEGIN/END, so we have:
for item in seq: {
do_this()
}
for item in seq:
{
do_this()
}
for item in seq: {
do_this(); }
for item in seq: {
do_this()
}
for item in seq:
{ do_this() }
for item in seq:
{ do_this() }
for item in seq:
{
do_this()
}
and so on, until your brain explodes.
--
Steven
More information about the Python-list
mailing list