Mercurial Hosting > luan
diff website/src/diff.html.luan @ 685:1e4b0bc0202d
update documentation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 16 Apr 2016 22:37:47 -0600 |
parents | b73f005f3735 |
children | 33f1b4ad2c9d |
line wrap: on
line diff
--- a/website/src/diff.html.luan Sat Apr 16 21:42:19 2016 -0600 +++ b/website/src/diff.html.luan Sat Apr 16 22:37:47 2016 -0600 @@ -104,6 +104,8 @@ <p>Luan only has metatable for tables, not for other types.</p> +<p>Luan does not support the <b>call</b> metamethod. There is nothing that one can do with the <b>call</b> metamethod that can't be done more cleanly with closures, so this was left out.</p> + <h3 heading><a name="gc">Garbage Collection</a></h3> <p>Luan uses Java garbage collection. Luan has no special garbage collection methods.</p> @@ -118,7 +120,7 @@ <h3 heading><a name="lex">Lexical Conventions</a></h3> -<p>Unlike Lua, Luan generally considers the end of a line to be the end of a statement. This catches errors and encourages readability. The exception to this is in paranthesis <em>(...)</em> where the end of line is treated as white space.</p> +<p>Unlike Lua, Luan considers the end of a line to be the end of a statement. This catches errors and encourages readability. If you want to continue a statement on another line, you can use a backslash followed by a newline which will be treated as white space.</p> <p>Luan has exactly the same set of keywords as Lua and has the same other lexical conventions.</p> @@ -199,6 +201,8 @@ <p>Luan does not support Lua's <code>v:name(args)</code> style object-oriented function call. Object oriented programming is done in Luan using closures, so this feature is not needed.</p> +<p>Luan doesn't support <em>proper tail calls</em>. Because Java doesn't support this cleanly, this was left out.</p> + <h4 heading><a name="template_expr">Template Expressions</a></h4> <p>Template expressions are a Luan addition that don't exist in Lua. See <a href="manual.html#template_expr">Template Expressions</a> in the Luan Reference Manual.</p>