<?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>Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx</link><description>A while back I asked for some feedback about how we should format anonymous methods. Then I was asking whether the default should be to put the opening brace on the same line as the delegate keyword or not. From your feedback, it looks like we'll keep</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211847</link><pubDate>Tue, 10 Aug 2004 12:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211847</guid><dc:creator>Ron</dc:creator><description>I'd like to see Geoff's second formatting or your [Kevin] seventh formatting.  Indenting is generally preferable to not having it.  I'd also recommend having this as the default (indenting turned on).&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211847" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211595</link><pubDate>Tue, 10 Aug 2004 03:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211595</guid><dc:creator>Ornus</dc:creator><description>I like #4 or #7 (depending on the length of the method body). Would prefer by default.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211595" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211585</link><pubDate>Tue, 10 Aug 2004 03:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211585</guid><dc:creator>Sean Chase</dc:creator><description>I think this is the most readable:&lt;br&gt;&lt;br&gt;List&amp;lt;Thing&amp;gt; somethings = things.FindAl(delegate(Thing thing)&lt;br&gt;    {&lt;br&gt;        return thing.ShouldBeIncluded;&lt;br&gt;    }&lt;br&gt;);&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211585" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211339</link><pubDate>Mon, 09 Aug 2004 17:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211339</guid><dc:creator>Kevin Pilch-Bisson</dc:creator><description>Hi Don,&lt;br&gt;&lt;br&gt;VS2003 only allows one option controlling braces, which is whether or not to put them on the next line.  However, anonymous methods are a new language feature, so there isn't yet much usage to determine how to format them.&lt;br&gt;&lt;br&gt;I see your point about for loops, however, what I think there is something that distinguishes anonymous methods from for loops and the like.  For loops are always a statement by themselves, whereas anonymous methods are always embedded inside another statement (like a method call, or an assignment).  I think the people who are requesting this option want it because they want some way to show that the anonymous method is embedded inside the other statement.&lt;br&gt;&lt;br&gt;Does that make sense?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211339" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211272</link><pubDate>Mon, 09 Aug 2004 13:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211272</guid><dc:creator>Don</dc:creator><description>When I'm writing 'for' loops in VS2003, they look like your option #3.  That's how I like them to look.  I'm not aware of ever having messed with curly-brace-formatting options in VS, but it's certainly certainly possible that I did.  Assuming there are VS2003 curly-brace-formatting options (I'm out of town with a laptop that doesn't have VS on it), I'd want VS2005 to respect the curly-brace formatting options that I set in VS2003 (which in this case would cause anonymous methods to look like method #3 for my newlining behavior).  If there are no such options in VS2003, I'd want VS2005 to have defaults that are as close to VS2003 behavior as possible (which again would be #3 for people like me who use a lot of newlines).&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211272" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211113</link><pubDate>Mon, 09 Aug 2004 07:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211113</guid><dc:creator>Zk</dc:creator><description>I have to sorta take back my previous answer. I didn't notice the indenting on #3. Of all the choices, I actually like that one the best. But, if I was to do it all inline (ie, have the curly brackets on the same line as the method code, I'd do something like #5. I guess that's two completely different options, and I'd be stuck formatting manually for one or the other. &lt;br&gt;&lt;br&gt;Although, except for abstract properties, I almost never have curly brackets on the same line as my block code, so I guess I'd actually end up using the existing option as my default.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211113" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211100</link><pubDate>Mon, 09 Aug 2004 06:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211100</guid><dc:creator>Luc Cluitmans</dc:creator><description>Like Geoff, I think that example 3 is the clearest, with  example 6 coming in second.&lt;br&gt;&lt;br&gt;As far as the indent option goes: I think having more options is always better...&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211100" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211097</link><pubDate>Mon, 09 Aug 2004 06:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211097</guid><dc:creator>Michael Teper</dc:creator><description>I'd prefer having the option.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211097" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211089</link><pubDate>Mon, 09 Aug 2004 06:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211089</guid><dc:creator>Hein Mulder</dc:creator><description>As a newbe, i prefer option 7.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211089" width="1" height="1"&gt;</description></item><item><title>re: Anonymous method formatting, again.</title><link>http://blogs.msdn.com/b/kevinpilchbisson/archive/2004/08/08/210989.aspx#211083</link><pubDate>Mon, 09 Aug 2004 05:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211083</guid><dc:creator>Geoff Appleby</dc:creator><description>*laughs*&lt;br&gt;Good to see you correct yourself :)&lt;br&gt;Doesn't matter to me what can and can't be done, i was just telling you what i'd prefer.&lt;br&gt;If you choose to bow down before me and accept my preferences, then that's only the world working as it should.&lt;br&gt;If you discover that you won't/can't make it happen, i'm sure the world is no worse off - so long as i can still do option 3.&lt;br&gt;Although, whatever the formatting chosen, i think it's pretty safe in assuming that people won't really care so long as there's indenting involved, and the indenting makes sense and is clearly showing what block it's encapsulating.&lt;br&gt;&lt;br&gt;I prefer the option where you bow before my judgement however :)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211083" width="1" height="1"&gt;</description></item></channel></rss>