<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Intent Programming</title>
	<link>http://ilikeellipses.com/2008/07/16/intent-programming/</link>
	<description>the blog for developers who care about more than just code...</description>
	<pubDate>Wed, 10 Mar 2010 18:49:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
		<item>
		<title>By: mike hall</title>
		<link>http://ilikeellipses.com/2008/07/16/intent-programming/#comment-2024</link>
		<dc:creator>mike hall</dc:creator>
		<pubDate>Wed, 16 Jul 2008 15:40:57 +0000</pubDate>
		<guid>http://ilikeellipses.com/2008/07/16/intent-programming/#comment-2024</guid>
		<description>The WriteOnce construct looks like precisely what I need and is actually more readable and understandable than const IMO.

Not having a setter and using readonly works in certain cases, but still not for local variables that need to be set at runtime.</description>
		<content:encoded><![CDATA[<p>The WriteOnce construct looks like precisely what I need and is actually more readable and understandable than const IMO.</p>
<p>Not having a setter and using readonly works in certain cases, but still not for local variables that need to be set at runtime.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Moser</title>
		<link>http://ilikeellipses.com/2008/07/16/intent-programming/#comment-2022</link>
		<dc:creator>Jeff Moser</dc:creator>
		<pubDate>Wed, 16 Jul 2008 12:46:50 +0000</pubDate>
		<guid>http://ilikeellipses.com/2008/07/16/intent-programming/#comment-2022</guid>
		<description>Having immutable state like the C++ "const" keyword allows is very important in concurrent code. This is why the new Parallel Extensions (which will probably be integrated into .net 4.0) include a WriteOnce class that enforce that it's only ever written to once. 

See http://blogs.msdn.com/pedram/archive/2008/06/02/coordination-data-structures-writeonce-t.aspx

It's a little bit hack-ish since it's not part of the language itself, but it's not too bad. For other scenarios, simply not having a setter will usually do on properties and then using readonly where you can.</description>
		<content:encoded><![CDATA[<p>Having immutable state like the C++ &#8220;const&#8221; keyword allows is very important in concurrent code. This is why the new Parallel Extensions (which will probably be integrated into .net 4.0) include a WriteOnce class that enforce that it&#8217;s only ever written to once. </p>
<p>See <a href="http://blogs.msdn.com/pedram/archive/2008/06/02/coordination-data-structures-writeonce-t.aspx" rel="nofollow">http://blogs.msdn.com/pedram/archive/2008/06/02/coordination-data-structures-writeonce-t.aspx</a></p>
<p>It&#8217;s a little bit hack-ish since it&#8217;s not part of the language itself, but it&#8217;s not too bad. For other scenarios, simply not having a setter will usually do on properties and then using readonly where you can.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
