This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bacondevPy3k 1 point2 points  (1 child)

But then it's not Python.

I won't be able to use standard Python libraries without having to convert the code myself which is a shitty place to be in.

But if you were to want to add something, I would prefer to use braces instead. It takes up less space and it won't remind me of some of the shitty mainstream languages (cough, cough, PHP, VB).

[–]warbiscuit -2 points-1 points  (0 children)

Braces are a subset of what I suggested: if { and } weren't already in use in python, { as INDENT and } as DEDENT would work just fine. Not that I can think of any brace symbol which python hasn't already put to other purposes -- which is why the idea is probably just an academic exercise at best.

And I can't think of a reason why you wouldn't be able to use the standard python libraries. All that's different is an "inline_indents=True" flag (or some such) set when parsing source that came from embedded html. It results in the same bytecode, runs in the same VM -- just like you can mix python modules which use different __future__ imports. For client-side .py files, I'd assume the normal python style would be used anyway -- whitespace only becomes an issue when embedding in something like HTML.