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