<?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"
	>
<channel>
	<title>Comments on: The evolution of easy</title>
	<atom:link href="http://thediscoblog.com/2007/12/06/the-evolution-of-easy/feed/" rel="self" type="application/rss+xml" />
	<link>http://thediscoblog.com/2007/12/06/the-evolution-of-easy/</link>
	<description>Can you dig it man?</description>
	<pubDate>Thu, 20 Nov 2008 13:23:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: bandit</title>
		<link>http://thediscoblog.com/2007/12/06/the-evolution-of-easy/#comment-35367</link>
		<dc:creator>bandit</dc:creator>
		<pubDate>Mon, 10 Dec 2007 22:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://thediscoblog.com/2007/12/06/the-evolution-of-easy/#comment-35367</guid>
		<description>Umm ... this is called assert() in C.

I will admit that you have a more inclusive version, but I can do the same by just writing a C function that does nothing more than the asserts:

assert_foo( &#38;foo );

void assert_foo( FOO *foo )
{
  assert( foo );
  assert( foo-&#62;type === TYPE_FOO );  // good practice

  assert( foo-&#62;field_1 == 5 );
  assert( strcmp( foo-&#62;string, "bar" ) == 0 );
  // etc
}

You can even write functions that match 'has' (left as excercize of reader).</description>
		<content:encoded><![CDATA[<p>Umm &#8230; this is called assert() in C.</p>
<p>I will admit that you have a more inclusive version, but I can do the same by just writing a C function that does nothing more than the asserts:</p>
<p>assert_foo( &amp;foo );</p>
<p>void assert_foo( FOO *foo )<br />
{<br />
  assert( foo );<br />
  assert( foo-&gt;type === TYPE_FOO );  // good practice</p>
<p>  assert( foo-&gt;field_1 == 5 );<br />
  assert( strcmp( foo-&gt;string, &#8220;bar&#8221; ) == 0 );<br />
  // etc<br />
}</p>
<p>You can even write functions that match &#8216;has&#8217; (left as excercize of reader).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://thediscoblog.com/2007/12/06/the-evolution-of-easy/#comment-34875</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 06 Dec 2007 20:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://thediscoblog.com/2007/12/06/the-evolution-of-easy/#comment-34875</guid>
		<description>Update! Based upon a suggestion by my friend &lt;a href="http://www.jroller.com/aalmiray/" rel="nofollow" rel="nofollow" rel="nofollow" rel="nofollow" rel="nofollow"&gt;Andres Almiray&lt;/a&gt;, &lt;code&gt;has&lt;/code&gt; has now been  mapped to &lt;code&gt;contains&lt;/code&gt;; consequently, if you find that &lt;code&gt;has&lt;/code&gt; reads more copsetically, you can use it! 

For instance:

&lt;pre&gt;&lt;code&gt;
ensure(person){
 contains([firstName:"Jill", age:11])
}
&lt;/code&gt;&lt;/pre&gt;

can be rewritten, if you'd like, to: 

&lt;pre&gt;&lt;code&gt;
ensure(person){
 has([firstName:"Jill", age:11])
}
&lt;/code&gt;&lt;/pre&gt;

In fact, I think I prefer &lt;code&gt;has&lt;/code&gt; now! </description>
		<content:encoded><![CDATA[<p>Update! Based upon a suggestion by my friend <a href="http://www.jroller.com/aalmiray/" rel="nofollow" rel="nofollow" rel="nofollow" rel="nofollow" rel="nofollow">Andres Almiray</a>, <code>has</code> has now been  mapped to <code>contains</code>; consequently, if you find that <code>has</code> reads more copsetically, you can use it! </p>
<p>For instance:</p>
<pre><code>
ensure(person){
 contains([firstName:"Jill", age:11])
}
</code></pre>
<p>can be rewritten, if you&#8217;d like, to: </p>
<pre><code>
ensure(person){
 has([firstName:"Jill", age:11])
}
</code></pre>
<p>In fact, I think I prefer <code>has</code> now!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
