[IronPython] Using blocks separators instead of indentation
Curt Hagenlocher
curt at hagenlocher.org
Mon Aug 13 13:55:02 PDT 2007
On 8/13/07, Ori <oorrii at gmail.com> wrote:
>
>
> OK I got the point. I have to use several statements in a single line.
>
> For exmpale, something like:
> i = 1; if (i >=1): i = 0
>
> is there a way to do it? Is there a replacement to the newline char?
This is legal Python:
a = 1; b = 2
if a != b: print 'different'
I don't know *why* someone would want to write code like this unless they've
been programming for such a short time that they've never had to go back and
change something that they wrote over a year ago. I find this style
unreadable.
--
Curt Hagenlocher
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070813/857783ac/attachment.html
More information about the Users
mailing list