Lua Day 1: So near yet so far

ruby lua

05|10|2010

So far Lua is strikingly similar to ruby. This of course only appears to be the case for very simple scripts.

Some common things so far:

  1. Condition expressions accepts any value, and false / nil are the only things which are failures. 0 and ”” are both true.
  2. The concept of a Nil class which only has nil as a value.
  3. The use of end to denote closing blocks for if, for, function definitions, etc.
  4. The general way in which a program feels.

Lua Fibonacci:

blog comments powered by Disqus