<?xml version='1.0' encoding='iso-8859-1'?><?xml-stylesheet type='text/xsl' href='http://w3future.com/w3f/w3f.xsl' ?>
<html xmlns="http://www.w3.org/2002/06/xhtml2" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xf="http://www.w3.org/2002/xforms/cr" xml:lang="en" xml:base="http://w3future.com/weblog/2002/12/16.xml">
<head>
<title>Monday, December 16, 2002 - Sjoerd Visscher's weblog</title>
<link rel="meta" type="application/rdf+xml" title="FOAF" href="http://w3future.com/people/sjoerd_visscher/foaf.rdf" />
</head>
<body>
<section id="content">
	<h>Sjoerd Visscher's weblog</h>
	<p>Pondering those web technologies that may change the future of the world wide web.</p>
	<section id="note">
		<h>Last Update</h>
		<p>10/16/2005; 1:24:47 AM</p>
		<p id="alternates" class="buttons">
			<l href="http://w3future.com/weblog/2002/12/16.xml?notransform" rel="alternate" type="application/xml" title="See this web page with XHTML 2.0 technology."><span>Try</span> XHTML 2.0</l>
			<l href="view-source:http://w3future.com/weblog/2002/12/16.xml?notransform" title="View the XHTML 2.0 source of this page."><span>Src</span> XHTML 2.0</l>
			<l href="http://w3future.com/tools/xr.pl?xr=http://w3future.com/xr/w3f.xml&amp;xml=http://w3future.com/weblog/2002/12/16.xml%3Fnotransform" rel="meta" type="application/rdf+xml" title="RDF metadata"><span>RDF</span> Metadata</l>
		</p>
		<xi:include href="http://w3future.com/w3f/buttons.xml" />
	</section><section>
  <h><a rel='prev' href='http://w3future.com/weblog/2002/12/10.xml#a150' title='Tuesday, December 10, 2002'>&lt;&#160;</a><a href="http://w3future.com/weblog/2002/12/16.xml">Monday, December 16, 2002</a><a rel='next' href='http://w3future.com/weblog/2002/12/28.txt#a152' title='Saturday, December 28, 2002'>&#160;&gt;</a></h>
<a name="a151"></a>
<section id="a151">
<h id='theFriendlierLoell'><a href="http://w3future.com/weblog/2002/12/16.xml#a151" class="weblogItemTitle">The friendlier Loell</a></h>
<p>Since the last <a href="http://w3future.com/html/loell/">Loell</a> update, the language has become a lot more user friendly. Precedence and unary operators are implemented, so arithmetic formulas now work as expected. The <code>;</code> expression separator is now optional at the end of a line. Extra indentation on new lines prevents the insertion of a separator. Lists are now built-in. The list syntax uses the <code>;</code> expression separator too, which is also optional at the end of a line. Lists have support for <a href="http://www.rubycentral.com/ref/ref_c_array.html#collect">Ruby-like <code>collect</code></a>, in the form of two methods: <code>all</code> and <code>some</code>. The difference is in the handling of failures:</p>
<pre>
[1; 'a'; 3] all {that*2} // --> failure
[1; 'a'; 3] some {that*2} // --> [2; 6]
</pre>
<p>Another new feature is an 'else' for closures, which together
with the (runtime) assertions gives a clean syntax, similar to <a href="http://www.haskell.org">Haskell</a>'s <a href="http://www.cs.uu.nl/~afie/haskell/tourofsyntax.html#Guards">guards</a>.</p>
<pre>
Number.sign = {this gt 0;  1}
            | {this lt 0; -1}
            | 0
</pre>
</section>
</section>
<xi:include href='http://w3future.com/tools/rdf.php?about=http://w3future.com/weblog/2002/12/16.xml' /></section>
<section id="navigation"><xi:include href="http://w3future.com/w3f/sections.xml" /></section>
<section id="sidebar"><xi:include href="http://w3future.com/weblog/sidebars/weblog.opml" /></section>
</body>
</html>

