<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Chris Rebert <clp2@rebertia.com><br><b><span style="font-weight: bold;">To:</span></b> Yingjie Lan <lanyjie@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> "python-list@python.org" <python-list@python.org><br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 11, 2011 3:50 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: allow line break at operators<br></font><br>On Thu, Aug 11, 2011 at 12:24 AM, Yingjie Lan <<a ymailto="mailto:lanyjie@yahoo.com" href="mailto:lanyjie@yahoo.com">lanyjie@yahoo.com</a>> wrote:<br>>
 From: Steven D'Aprano <steve+<a ymailto="mailto:comp.lang.python@pearwood.info" href="mailto:comp.lang.python@pearwood.info">comp.lang.python@pearwood.info</a>><br>> On Thu, 11 Aug 2011 12:52 pm Yingjie Lan wrote:<br>><br>>> :And if we require {} then truly free indentation should be OK too! But<br>>><br>>> :it wouldn't be Python any more.<br>>><br>>> Of course, but not the case with ';'. Currently ';' is optional in Python,<br>>> But '{' is used for dicts. Clearly, ';' and '{' are different in<br>>> magnitude.<br>>><br>>> So the decision is: shall we change ';' from optional to mandatory<br>>> to allow free line splitting?<br>><br>> :Why on earth would you want to break backwards compatibility of millions of<br>> :Python scripts and programs, and require extra, unnecessary line-noise on<br>> :every single line of Python code, just so that you can occasionally avoid
 a<br>> :writing a pair of parentheses?<br>><br>> I think allowing free line splitting (without parentheses -- that's<br>> artifitial and<br>> requires the coder to serve the machine rather than the other way around)<br>> with proper indentation will produce truely ergonomic code layout (well,<br>> assuming you also like properly indented code).<br>><br>> And this can be done almost hassle-free for the coder.<br><snip><br>> The trouble of adding a ';' to most of the lines can also be<br>> avoided by a smart editor (see my other reply).<br><br>:The trouble of dealing with long lines can be avoided by a smart<br>:editor. It's called line wrap.<br><br>Yeah, usually they just wrap it pretty arbitrarily, <br>and you don't have any control, isn't it?<br><br>Cheers,<br><br>Yingjie<br><br></div></div></div></body></html>