[IronPython] Using blocks separators instead of indentation
Joe Mason
joe at notcharles.ca
Mon Aug 13 20:30:14 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?
Why does it have to be in a single line? Just put it on two lines.
If you're storing it in a data file or something, just embed \n and \t's in
it to represent newlines and indentation levels. Escape it somehow if you
have to.
Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070813/e3993996/attachment.htm
More information about the Users
mailing list