A syntax idea for one-liners
Marcus Alanen
marcus at infa.abo.fi
Tue May 27 15:33:49 EDT 2003
On 27 May 2003 10:44:17 -0700, Paddy McCarthy <paddy3118 at netscape.net> wrote:
>The syntax seems a little cumbersome for 3 or four levels of
>indentation. how about a different scheme:
> * Use character ':' for one extra level of indentation.
> * Use character ';' to separate statements at the same level of
>indentation.
> * Use another character, (or character pair), to denote one level of
>de-dent.
>
>As you can see, I couldn't think of the last character to use :-)
Hey, we could use '{' to show indentation, and '}' to show dedentation.
And ';' could separate statements!
Seriously, this whole one-liner thing must be at the bottom of the
pile of "unpythonic ideas".
Marcus
More information about the Python-list
mailing list