I talked about earlier how the main problem for me wanting to use curly
braces is because of the visual ease of seeing the end of the code blocks..
well you can change the indention guidelines on most code editors to a
bright color and this might be the next best thing. Also a good feature to
try typing this on your python shell : *from __future__ import braces*
check the output:* SyntaxError: not a chance (pyshell#0, line 1)*
On Wed, Aug 13, 2008 at 10:15 AM, xbmuncher [EMAIL PROTECTED] wrote:
Yes I think python is great in its simplicity in typing code but not in its
absence of
Some clarifications w.r.t. indentation and Python:
http://www.secnetix.de/olli/Python/block_indentation.hawk
It's just a joke, really:
http://timhatch.com/projects/pybraces/
Turnabout is fair play!
http://blog.micropledge.com/2007/09/nobraces/
Also, pindent.py in the Tools/scripts directory of
I'll check out your links. But in response to some of the things said:
I'm a fan of indentation, a replacement of indentation with curly braces is
not what I was aiming for. If I could have it my way, I'd have indentation
and curly braces. I don't want to change official python syntax either.. I
Oh, I forgot there's another way to add braces
if it_is_way_cool: #{
print 'coolness'
#}
On Wed, Aug 13, 2008 at 11:06 PM, xbmuncher [EMAIL PROTECTED] wrote:
I'll check out your links. But in response to some of the things said:
I'm a fan of indentation, a replacement of indentation with
I don't see what the big deal is on coming up with the .{ #{, and other
bracket types to try to not interfere with normal bracket use in python. Its
relatively easy to create a parser to identify the brackets in use normally
and the code block brackets, with regex or without.
On Wed, Aug 13, 2008
On Wed, Aug 13, 2008 at 9:08 PM, xbmuncher [EMAIL PROTECTED] wrote:
I don't see what the big deal is on coming up with the .{ #{, and other
bracket types to try to not interfere with normal bracket use in python. Its
relatively easy to create a parser to identify the brackets in use normally
Yes I think python is great in its simplicity in typing code but not in its
absence of curly brackets to surround code blocks. Personally, it helps me
visually see the code blocks as well as saves me constant pain when the
compiler complains about broken/missing indents in the code.* I think it