<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Playing with blocks : Part 2</title>
	<link>http://www.rubyfleebie.com/playing-with-blocks-part-2/</link>
	<description>Because programming should be fun</description>
	<pubDate>Sat, 22 Nov 2008 06:49:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Mr eel</title>
		<link>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-238</link>
		<author>Mr eel</author>
		<pubDate>Tue, 05 Jun 2007 13:14:15 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-238</guid>
					<description>A good description!

Have you considered discussing the use of blocks in DSLs? They're probably one of the most common uses of blocks — outside of iterators — in Ruby and users unfamiliar with the concepts would at least recognise the code. They're a good place to start tinkering with blocks and getting a good idea of how they work.

That's what I've found for myself at least :)</description>
		<content:encoded><![CDATA[<p>A good description!</p>
<p>Have you considered discussing the use of blocks in DSLs? They&#8217;re probably one of the most common uses of blocks — outside of iterators — in Ruby and users unfamiliar with the concepts would at least recognise the code. They&#8217;re a good place to start tinkering with blocks and getting a good idea of how they work.</p>
<p>That&#8217;s what I&#8217;ve found for myself at least <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Seer Taak</title>
		<link>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-239</link>
		<author>Seer Taak</author>
		<pubDate>Tue, 05 Jun 2007 17:18:49 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-239</guid>
					<description>That would be kool. Talk about DSL's</description>
		<content:encoded><![CDATA[<p>That would be kool. Talk about DSL&#8217;s</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-240</link>
		<author>Frank</author>
		<pubDate>Tue, 05 Jun 2007 18:51:02 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-240</guid>
					<description>@Mr eel, @Taak

Thank you for the suggestion! Next part will be about blocks in DSL's.</description>
		<content:encoded><![CDATA[<p>@Mr eel, @Taak</p>
<p>Thank you for the suggestion! Next part will be about blocks in DSL&#8217;s.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Link Saturation Hacks</title>
		<link>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-241</link>
		<author>Link Saturation Hacks</author>
		<pubDate>Wed, 06 Jun 2007 10:43:57 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-241</guid>
					<description>damn that makes sense now, thanks</description>
		<content:encoded><![CDATA[<p>damn that makes sense now, thanks</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Shadowfiend</title>
		<link>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-242</link>
		<author>Shadowfiend</author>
		<pubDate>Wed, 06 Jun 2007 21:43:31 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-242</guid>
					<description>While using procs and thus blocks that exist after the method has finished executing is a better example of the closure concept, it's not true that the enclosing scope exists in the regular block usage case. When you go into the other method, you're going into a completely different local scope. The closure properties of the blocks are therefore still extremely useful, because the local scope of the other method can't refer to the local scope of the calling method except through the `glue' that is the block.</description>
		<content:encoded><![CDATA[<p>While using procs and thus blocks that exist after the method has finished executing is a better example of the closure concept, it&#8217;s not true that the enclosing scope exists in the regular block usage case. When you go into the other method, you&#8217;re going into a completely different local scope. The closure properties of the blocks are therefore still extremely useful, because the local scope of the other method can&#8217;t refer to the local scope of the calling method except through the `glue&#8217; that is the block.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Breaking Rumors, News, Truemors</title>
		<link>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-243</link>
		<author>Breaking Rumors, News, Truemors</author>
		<pubDate>Thu, 07 Jun 2007 04:09:18 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/playing-with-blocks-part-2/#comment-243</guid>
					<description>[...] http://www.rubyfleebie.com/playing-with-blocks-part-2/     Politics  no score    link spread   9:09 pm by hhgreg@gmail.com [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.rubyfleebie.com/playing-with-blocks-part-2/" rel="nofollow">http://www.rubyfleebie.com/playing-with-blocks-part-2/</a>     Politics  no score    link spread   9:09 pm by <a href="mailto:hhgreg@gmail.com">hhgreg@gmail.com</a> [&#8230;]</p>
]]></content:encoded>
				</item>
</channel>
</rss>
