Permalink
Browse files

Minor update to README

  • Loading branch information...
1 parent 8fb8423 commit e32f3f3db9f3189757502ed5756f94ed6abc2a43 @cymen committed Jul 3, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.markdown
View
@@ -21,6 +21,8 @@ Assumptions
Notes on Lua
============
+The Lua [style guide](http://lua-users.org/wiki/LuaStyleGuide) is a good overview of the language.
+
Scope
-----
@@ -33,6 +35,11 @@ The manual has this to say about tables:
> The type table implements associative arrays, that is, arrays that can be indexed not only with numbers, but with any value (except nil). Tables can be heterogeneous; that is, they can contain values of all types (except nil). **Tables are the sole data structuring mechanism in Lua**; they can be used to represent ordinary arrays, symbol tables, sets, records, graphs, trees, etc. To represent records, Lua uses the field name as an index. The language supports this representation by providing a.name as syntactic sugar for a["name"]. There are several convenient ways to create tables in Lua.
+Note that nil values in tables do not behave the same as in Ruby:
+
+ `{ nil }` == `{}`
+ `{ nil, 1, nil }` == `{ nil, 1 }`
+
Classes
-------
@@ -50,3 +57,4 @@ Method names
------------
It is not allowed to have `?` in a method name such as `play_again?`.
+

0 comments on commit e32f3f3

Please sign in to comment.