<div dir="ltr">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.<br>
<br><div class="gmail_quote">On Wed, Aug 13, 2008 at 11:39 PM, Chad Crabtree <span dir="ltr"><<a href="mailto:flaxeater@gmail.com">flaxeater@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Oh, I forgot there's another way to add braces<br>
<br>
if it_is_way_cool: #{<br>
print 'coolness'<br>
#}<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Aug 13, 2008 at 11:06 PM, xbmuncher <<a href="mailto:xboxmuncher@gmail.com">xboxmuncher@gmail.com</a>> wrote:<br>
> I'll check out your links. But in response to some of the things said:<br>
> I'm a fan of indentation, a replacement of indentation with curly braces is<br>
> not what I was aiming for. If I could have it my way, I'd have indentation<br>
> and curly braces. I don't want to change official python syntax either.. I<br>
> just want to be able to easily do it myself.<br>
><br>
> The big problem I had that I didn't explain well enough when I said<br>
> "visually" is that it is visually hard to tell when code blocks end when<br>
> other code blocks and statements begin immediately after them. With curly<br>
> braces you can easily visualize when looking at a lot of code where the code<br>
> block ends. The best thing you can do in python currently is to put an empty<br>
> line in between the last line of a code block and the following code, so you<br>
> can better visualize the end of the code block.<br>
><br>
> On Wed, Aug 13, 2008 at 4:23 AM, Chris Fuller<br>
> <<a href="mailto:cfuller084@thinkingplanet.net">cfuller084@thinkingplanet.net</a>> wrote:<br>
>><br>
>> Some clarifications w.r.t. indentation and Python:<br>
>> <a href="http://www.secnetix.de/olli/Python/block_indentation.hawk" target="_blank">http://www.secnetix.de/olli/Python/block_indentation.hawk</a><br>
>><br>
>> It's just a joke, really:<br>
>> <a href="http://timhatch.com/projects/pybraces/" target="_blank">http://timhatch.com/projects/pybraces/</a><br>
>><br>
>> Turnabout is fair play!<br>
>> <a href="http://blog.micropledge.com/2007/09/nobraces/" target="_blank">http://blog.micropledge.com/2007/09/nobraces/</a><br>
>><br>
>> Also, pindent.py in the Tools/scripts directory of your Python<br>
>> distribution<br>
>> will produce correctly indented scripts if the blocks are designated with<br>
>> a "#end" line.<br>
>><br>
>><br>
>> But seriously, you don't want to go creating a separate class of source<br>
>> file.<br>
>> It'll be harder for you and the other programmers to context switch when<br>
>> working with code that uses the standard style, will confuse others who<br>
>> won't<br>
>> know what to do with your code, adds overhead to the compiling, will break<br>
>> when somebody tries to run it under the standard environment, could<br>
>> clutter<br>
>> up your development directories, depending on the implementation, etc.<br>
>><br>
>> Here's a thread from 1999 on the Python mailing list that discusses the<br>
>> issue:<br>
>> <a href="http://mail.python.org/pipermail/python-list/1999-June/004450.html" target="_blank">http://mail.python.org/pipermail/python-list/1999-June/004450.html</a><br>
>><br>
>> There's another script towards the end that might even do what you want,<br>
>> but<br>
>> you might want to read what they have to say first :)<br>
>><br>
>> Cheers<br>
>> _______________________________________________<br>
>> Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
>> <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
><br>
><br>
> _______________________________________________<br>
> Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>