{"id":77,"date":"2006-03-11T19:20:42","date_gmt":"2006-03-11T18:20:42","guid":{"rendered":"http:\/\/web.glandium.org\/blog\/?p=77"},"modified":"2010-01-27T08:52:40","modified_gmt":"2010-01-27T07:52:40","slug":"what-kind-of-language-is-that","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=77","title":{"rendered":"What kind of language is that ?"},"content":{"rendered":"<p>Consider the following code :<\/p>\n<blockquote><p>\n<code><br \/>\nfor (var i = 0; i &lt; 20; i++) {<br \/>\n    var j = i;<br \/>\n}<br \/>\nalert(i + ' ' + j);<br \/>\n<\/code><\/p><\/blockquote>\n<p>That's javascript. It gives \"20 19\". Would you expect that from a decent language ?<\/p>\n<p><b>Update:<\/b> Same result with a <code>var j = 0;<\/code> before the <code>for<\/code> loop. No surprise, actually.<\/p>\n<p><b>Update 2:<\/b> It seems what I'm complaining about has not been well received ;). I'm not complaining about the values, I'm complaining about the fact that there <b>are<\/b> values...<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Consider the following code : for (var i = 0; i &lt; 20; i++) { var j = i; } alert(i + &#8216; &#8216; + j); That&#8217;s javascript. It gives &#8220;20 19&#8221;. Would you expect that from a decent language ? Update: Same result with a var j = 0; before the for loop. No [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[23],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-pdo","category-website","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=77"}],"version-history":[{"count":1,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":776,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions\/776"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}