A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2003-September/200793.html below:

Reduce need of backslash

Reduce need of backslash Reduce need of backslashStephen Horne $$$$$$$$$$$$$$$$$ at $$$$$$$$$$$$$$$$$$$$.co.uk
Sat Sep 27 16:12:48 EDT 2003
On Sat, 27 Sep 2003 15:49:59 -0400, Nicolas Fleury
<nid_oizo at yahoo.com_removethe_> wrote:

>Stephen Horne wrote:
>> Basically, when I need to break an expression over multiple lines, the
>> odds are that it already has parentheses anyway. And I wouldn't indent
>> that way anyway, I'd do it as...
>> 
>> a = (  firstitem
>>      + seconditem
>>      + (  thirditem
>>         * fourthitem
>>        )
>>     )
>
>But that's indentation anyway.  If the rule would be "all lines with a 
>superior indentation are part of the previous line", would that work? 

Probably yes, but it has been discussed before and never generated a
clear enough choice or sufficient will to make the change.

My personal preference would be closer to Haskells offside rule,
allowing me to write something similar to my example above but with
indentation reducing the need for parentheses. But it really isn't an
important issue IMO.


-- 
Steve Horne

steve at ninereeds dot fsnet dot co dot uk


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4