Mercurial Hosting > luan
comparison website/src/diff.html.luan @ 1797:ba43135bb98d
backticks docs
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 11 Feb 2024 18:52:53 -0700 |
parents | 2968e43cdd44 |
children | f44dcb3fedf7 |
comparison
equal
deleted
inserted
replaced
1796:383703b581bc | 1797:ba43135bb98d |
---|---|
243 <p>Unlike Lua, Luan does not allow extra non-nil arguments to be passed to a function. In Luan, this causes an error. This change helps find coding mistakes that would be very hard to detect otherwise.</p> | 243 <p>Unlike Lua, Luan does not allow extra non-nil arguments to be passed to a function. In Luan, this causes an error. This change helps find coding mistakes that would be very hard to detect otherwise.</p> |
244 | 244 |
245 <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> | 245 <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> |
246 | 246 |
247 <p>Luan doesn't support <em>proper tail calls</em>. Because Java doesn't support this cleanly, this was left out.</p> | 247 <p>Luan doesn't support <em>proper tail calls</em>. Because Java doesn't support this cleanly, this was left out.</p> |
248 <% | |
249 end | |
250 } | |
251 backticks = { | |
252 title = "Backticks" | |
253 content = function() | |
254 %> | |
255 <p>Backtick expressions are a Luan addition that don't exist in Lua. See <a href="manual.html#backticks">Backticks</a> in the Luan Reference Manual.</p> | |
248 <% | 256 <% |
249 end | 257 end |
250 } | 258 } |
251 } | 259 } |
252 } | 260 } |