<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx</link><description>Python philosophy holds that "readability counts" and so after giving up the world of C++, templates, and STL one finds a calm bliss in the "obviousness" of most python code. C# made big strides in readability and the IDE-supported intellisense and refactoring</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4448534</link><pubDate>Sat, 18 Aug 2007 20:14:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4448534</guid><dc:creator>MSDN Blog Postings  » C# 3.0 as Python with Braces</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/08/18/c-30-as-python-with-braces/"&gt;http://msdnrss.thecoderblogs.com/2007/08/18/c-30-as-python-with-braces/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4449572</link><pubDate>Sat, 18 Aug 2007 21:32:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4449572</guid><dc:creator>Michael Foord</dc:creator><description>&lt;p&gt;Nice post. Of course it shows off the benefits of IronPython better than the benefits of C#...&lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4451476</link><pubDate>Sat, 18 Aug 2007 23:02:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4451476</guid><dc:creator>Paddy3118</dc:creator><description>&lt;p&gt;Unfhortunately there is not much idiomatic Python in the original - probably because of the type of example chosen.&lt;/p&gt;
&lt;p&gt;- Paddy&lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4460418</link><pubDate>Sun, 19 Aug 2007 10:58:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4460418</guid><dc:creator>hafizan</dc:creator><description>&lt;P&gt;I have never seen C# code. But&amp;nbsp;I think it become like java which more powerfull. The python are more easier to understand but the only part def is function is very confusing.&lt;/P&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4465386</link><pubDate>Sun, 19 Aug 2007 19:19:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4465386</guid><dc:creator>Uriel Katz</dc:creator><description>&lt;p&gt;sorry but this doesn`t show anything you are writting SWF code in both languages,of course it looks the same.&lt;/p&gt;
&lt;p&gt;if you tried to write something which do dynamic things like adding methods to a object and then calling them you just couldn`t do that in C#&lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4475680</link><pubDate>Mon, 20 Aug 2007 11:14:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4475680</guid><dc:creator>JJ</dc:creator><description>&lt;p&gt;You could have also used object initializers when creating some of the objects in C#:&lt;/p&gt;
&lt;p&gt;var n = new NotifyIcon {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Icon = new Icon(@&amp;quot;e:\foo\icon.ico&amp;quot;),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Text = &amp;quot;Watching Path&amp;quot; };&lt;/p&gt;
&lt;p&gt;Any idea whether IronPython has the same facility?&lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4499355</link><pubDate>Tue, 21 Aug 2007 23:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4499355</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hmm, I don't know python to save my life so excuse me if this is a really dumb question but how does the code know you are done defining thread_proc()? &lt;/p&gt;
&lt;p&gt;I understand the dialog will be modal when shown. &amp;nbsp;Does that somehow mean you are done defining a method? &lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4519362</link><pubDate>Thu, 23 Aug 2007 06:22:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4519362</guid><dc:creator>mgb</dc:creator><description>&lt;p&gt;Whitespace is significant in python&lt;/p&gt;
&lt;p&gt;the function def ends when the code is no longer indented.&lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4520625</link><pubDate>Thu, 23 Aug 2007 08:41:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4520625</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Python knows you are done because the indentation level changes. all the code belonging to thread_proc() is indented one tab and more.&lt;/p&gt;
&lt;p&gt;So in this line:&lt;/p&gt;
&lt;p&gt;t = Thread(ThreadStart(thread_proc))&lt;/p&gt;
&lt;p&gt;you don't have any indentation and therefore you are at the same level as the function definition and therefore its body must be over&lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4634122</link><pubDate>Thu, 30 Aug 2007 00:07:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4634122</guid><dc:creator>Michael Foord</dc:creator><description>&lt;p&gt;&amp;quot;You could have also used object initializers when creating some of the objects in C#:&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;Any idea whether IronPython has the same facility?&amp;quot;&lt;/p&gt;
&lt;p&gt;Yes, and without the superfluous declarations. :-)&lt;/p&gt;
&lt;p&gt;n = NotifyIcon(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Icon = new Icon(&amp;quot;e:\foo\icon.ico&amp;quot;),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Text = &amp;quot;Watching Path&amp;quot;)&lt;/p&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#4746997</link><pubDate>Tue, 04 Sep 2007 21:44:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4746997</guid><dc:creator>John</dc:creator><description>&lt;P&gt;You're kidding? Formatting matters in python? &amp;nbsp;So now besides syntax and logic defects you need to worry formatting bugs? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Almost sounds like an esoteric language to me...&lt;/P&gt;</description></item><item><title>re: C# 3.0 as Python with Braces</title><link>http://blogs.msdn.com/saveenr/archive/2007/08/18/c-3-0-as-python-with-braces.aspx#8662636</link><pubDate>Fri, 27 Jun 2008 22:18:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8662636</guid><dc:creator>Le Dave</dc:creator><description>&lt;p&gt;Of course formatting matters in Python is a good thing.&lt;/p&gt;
&lt;p&gt;Consider this C# code :&lt;/p&gt;
&lt;p&gt;if ( a &amp;lt; 0)&lt;/p&gt;
&lt;p&gt;foo();&lt;/p&gt;
&lt;p&gt;if (a &amp;gt; 0)&lt;/p&gt;
&lt;p&gt;bar();&lt;/p&gt;
&lt;p&gt;else&lt;/p&gt;
&lt;p&gt;bazr();&lt;/p&gt;
&lt;p&gt;Do you think this will not lead you to bugs, if you never indent properly ?&lt;/p&gt;
&lt;p&gt;Do you always put your lovely braces exactly at the place you want... Are not they a source of bugs themselves ?&lt;/p&gt;</description></item></channel></rss>