<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yet Another [À Compléter] &#187; difference</title>
	<atom:link href="http://blog.neteril.org/tag/difference/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.neteril.org</link>
	<description>Random thoughts of Jérémie Laval</description>
	<lastBuildDate>Mon, 19 Jul 2010 17:12:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Could C++ have at least a good point ?</title>
		<link>http://blog.neteril.org/2007/09/26/could-c-have-at-least-a-good-point/</link>
		<comments>http://blog.neteril.org/2007/09/26/could-c-have-at-least-a-good-point/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 19:12:07 +0000</pubDate>
		<dc:creator>Jérémie Laval</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[const]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[functionnal]]></category>
		<category><![CDATA[imperative]]></category>

		<guid isPermaLink="false">http://garuma.wordpress.com/2007/09/26/could-c-have-at-least-a-good-point/</guid>
		<description><![CDATA[(I&#8217;m taking risks with such a title ) During yesterday computer science practical session (just think of the most hellish thing you have ever done), I was wandering lazily in the program list of the computer where I was supposed to do Excel stuff (actually I had pretty most finished and I wasn&#8217;t really in [...]]]></description>
			<content:encoded><![CDATA[<p>(I&#8217;m taking risks with such a title <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )</p>
<p>During yesterday computer science practical session (just think of the most hellish thing you have ever done), I was wandering lazily in the program list of the computer where I was supposed to do Excel stuff (actually I had pretty most finished and I wasn&#8217;t really in the mood to do extra work), when I found an antique DevC++ installation in one of the menu. Launching the thing I started to do a calculator (yes, after VBA almost anything else to program sounds interesting) when I remembered the use of the <code>const</code> keyword applied to functions and methods which (C++ purists correct me if I&#8217;m wrong) compiler-check that the code inside the function/method doesn&#8217;t modify both the parameters or the internal class state.</p>
<p>After thinking about it I thought : &laquo;&nbsp;Hey actually that&#8217;s a nice idea&nbsp;&raquo; and indeed it somehow lessens what the functional enthusiasts may call one of the &#8216;imperative nightmare&#8217;, namely, the imperative&#8217;s side-effects :</p>
<blockquote><p>&laquo;&nbsp;Functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions <strong>and avoids state and mutable data</strong>. It emphasizes the application of functions, <strong>in contrast</strong> with the imperative programming style <strong>that emphasizes changes in state.</strong>&laquo;&nbsp;.<br />
 Wikipédia, <a href="http://en.wikipedia.org/wiki/Functional_programming">Functional programming</a></p></blockquote>
<p>This feature is particularly important in the today context where search for performance leads to parallel programming, a field <a href="http://en.wikipedia.org/wiki/Erlang_%28programming_language%29">where functional language excels</a> by using this feature that imply that every function calls are independent from the execution context of the program.</p>
<p>IMHO this could proves to be a good feature in C# : a compiler-enforced mean to behave in a (mimicked) functional way with readonly access to fields and parameters and, thus, both no pollution of the others class&#8217; methods call and the absence of locks which would allow, for example, auto-parallelism by the runtime. Especially when C# tends to get more and more functional concepts integrated both in the core language and in the class library.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.neteril.org/2007/09/26/could-c-have-at-least-a-good-point/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
