<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Theorie-Du-Langage-De-Programmation | Dr. Goulu</title><link>https://drgoulu.com/tag/theorie-du-langage-de-programmation/</link><atom:link href="https://drgoulu.com/tag/theorie-du-langage-de-programmation/index.xml" rel="self" type="application/rss+xml"/><description>Theorie-Du-Langage-De-Programmation</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>fr-FR</language><lastBuildDate>Wed, 29 May 2019 00:00:00 +0000</lastBuildDate><image><url>https://drgoulu.com/media/icon_hu_8d57a97d564ea9bb.png</url><title>Theorie-Du-Langage-De-Programmation</title><link>https://drgoulu.com/tag/theorie-du-langage-de-programmation/</link></image><item><title>Lisp est-il un langage de programmation facile ?</title><link>https://drgoulu.com/2019/05/29/lisp-est-il-un-langage-de-programmation-facile/</link><pubDate>Wed, 29 May 2019 00:00:00 +0000</pubDate><guid>https://drgoulu.com/2019/05/29/lisp-est-il-un-langage-de-programmation-facile/</guid><description>&lt;p&gt;&lt;em&gt;Article initialement publié sur
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Lots of Insipid and Stupid Parenthesis ? Non, pas facile du tout.&lt;/p&gt;
&lt;p&gt;Au début ça va, si on a un IDE qui formate ça bien avec des parenthèses multicolores, ce qui n&amp;rsquo;est pas le cas ci-dessous:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(defun factorial (n &amp;amp;optional (acc 1))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;#34;Calcule la factorielle de l&amp;#39;entier n.&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(if (&amp;lt;= n 1)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; acc
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (factorial (- n 1) (* acc n))))
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;et puis ça donne des
(un bout de browser en LISP trouvé sur GitHub) …&lt;/p&gt;
&lt;p&gt;Sérieusement : dès que j&amp;rsquo;ai appris LISP en 1986, je me suis dépêché d&amp;rsquo;apprendre Prolog pour ce qu&amp;rsquo;on appelait intelligence artificielle à l&amp;rsquo;époque., et aujourd&amp;rsquo;hui les bonnes idées de LISP (car il y en a quand même…) se retrouvent beaucoup plus clairement dans des langages comme Python&lt;/p&gt;
&lt;p&gt;voir
&lt;/p&gt;</description></item></channel></rss>