<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Domain Specific Languages</title>
	<atom:link href="http://cosine.org/2007/08/05/domain-specific-languages/feed/" rel="self" type="application/rss+xml" />
	<link>http://cosine.org/2007/08/05/domain-specific-languages/</link>
	<description>Life and Ruby and Security</description>
	<lastBuildDate>Sun, 11 Dec 2011 12:10:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: PansyHerman23</title>
		<link>http://cosine.org/2007/08/05/domain-specific-languages/comment-page-1/#comment-3394</link>
		<dc:creator>PansyHerman23</dc:creator>
		<pubDate>Wed, 29 Jun 2011 21:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.cosine.org/2007/08/05/domain-specific-languages/#comment-3394</guid>
		<description>That is perfect that we are able to take the &lt;a href=&quot;http://bestfinance-blog.com/topics/mortgage-loans&quot; rel=&quot;nofollow&quot;&gt;mortgage loans&lt;/a&gt; and that opens up new possibilities.</description>
		<content:encoded><![CDATA[<p>That is perfect that we are able to take the <a href="http://bestfinance-blog.com/topics/mortgage-loans" rel="nofollow">mortgage loans</a> and that opens up new possibilities.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mst</title>
		<link>http://cosine.org/2007/08/05/domain-specific-languages/comment-page-1/#comment-9</link>
		<dc:creator>mst</dc:creator>
		<pubDate>Fri, 17 Aug 2007 05:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.cosine.org/2007/08/05/domain-specific-languages/#comment-9</guid>
		<description>Here&#039;s how I&#039;d write it (code not actually tested but should be close enough) -

package DoStuff;

use Moose;
use IO::All;

has &#039;func&#039; =&gt; (is =&gt; &#039;rw&#039;);

sub BUILD {
  my $self = shift;
  local *do_stuff = sub (&amp;) { $self-&gt;func($_[0]); };
  eval io(&#039;config&#039;)-&gt;slurp;
}

sub run_func { shift-&gt;func-&gt;(); }

Wonderful thing, modern perl.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s how I&#8217;d write it (code not actually tested but should be close enough) -</p>
<p>package DoStuff;</p>
<p>use Moose;<br />
use IO::All;</p>
<p>has &#8216;func&#8217; =&gt; (is =&gt; &#8216;rw&#8217;);</p>
<p>sub BUILD {<br />
  my $self = shift;<br />
  local *do_stuff = sub (&amp;) { $self-&gt;func($_[0]); };<br />
  eval io(&#8216;config&#8217;)-&gt;slurp;<br />
}</p>
<p>sub run_func { shift-&gt;func-&gt;(); }</p>
<p>Wonderful thing, modern perl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ovid</title>
		<link>http://cosine.org/2007/08/05/domain-specific-languages/comment-page-1/#comment-3</link>
		<dc:creator>Ovid</dc:creator>
		<pubDate>Mon, 06 Aug 2007 13:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cosine.org/2007/08/05/domain-specific-languages/#comment-3</guid>
		<description>Hi Cosine,

I think it would be good if you read up on the Wikipedia entry on DSLs (http://en.wikipedia.org/wiki/Domain-specific_programming_language).  Since I&#039;m not sure what formatting is allowed here, I wrote up a journal entry on use.perl (http://use.perl.org/~Ovid/journal/34010).

Cheers,
Ovid</description>
		<content:encoded><![CDATA[<p>Hi Cosine,</p>
<p>I think it would be good if you read up on the Wikipedia entry on DSLs (<a href="http://en.wikipedia.org/wiki/Domain-specific_programming_language" rel="nofollow">http://en.wikipedia.org/wiki/Domain-specific_programming_language</a>).  Since I&#8217;m not sure what formatting is allowed here, I wrote up a journal entry on use.perl (<a href="http://use.perl.org/~Ovid/journal/34010" rel="nofollow">http://use.perl.org/~Ovid/journal/34010</a>).</p>
<p>Cheers,<br />
Ovid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hashbangperl</title>
		<link>http://cosine.org/2007/08/05/domain-specific-languages/comment-page-1/#comment-2</link>
		<dc:creator>hashbangperl</dc:creator>
		<pubDate>Mon, 06 Aug 2007 08:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.cosine.org/2007/08/05/domain-specific-languages/#comment-2</guid>
		<description>Cosine,

Please to be reading TFM ;)

Hint : perldoc -f do.

Aristotle ( http://use.perl.org/~Aristotle/journal/34004)couldn&#039;t be bothered to jump through the hoops of registration and logging in just to correct such a silly mistake, but it&#039;s monday morning and the Tax man and a slow paying client have annoyed me already so I&#039;m cranky.

Also - more importantly than remembering to RTFM, is to not be dynamically eval&#039;ing in the first place - ick! I have to agree with Aristotle on both counts here.

From the filename, I&#039;d suggest you want to be reading a nice configuration file using one of the nice modules on CPAN. Lately I&#039;ve  been using Config::Context, which gives me Apache style per host and directory configuration - incredibly handy for my Perl MVC application so I can deploy a web application once, but with configuration per host and path. Sweet as!</description>
		<content:encoded><![CDATA[<p>Cosine,</p>
<p>Please to be reading TFM <img src='http://cosine.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Hint : perldoc -f do.</p>
<p>Aristotle ( <a href="http://use.perl.org/~Aristotle/journal/34004)couldn" rel="nofollow">http://use.perl.org/~Aristotle/journal/34004)couldn</a>&#8216;t be bothered to jump through the hoops of registration and logging in just to correct such a silly mistake, but it&#8217;s monday morning and the Tax man and a slow paying client have annoyed me already so I&#8217;m cranky.</p>
<p>Also &#8211; more importantly than remembering to RTFM, is to not be dynamically eval&#8217;ing in the first place &#8211; ick! I have to agree with Aristotle on both counts here.</p>
<p>From the filename, I&#8217;d suggest you want to be reading a nice configuration file using one of the nice modules on CPAN. Lately I&#8217;ve  been using Config::Context, which gives me Apache style per host and directory configuration &#8211; incredibly handy for my Perl MVC application so I can deploy a web application once, but with configuration per host and path. Sweet as!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

