lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


HyperHacker <[email protected]> wrote:
>
> The point about explicitly checking for a table is also something that's
> bugged me a bit in Lua. Dynamically-typed languages like Lua are ideal for
> Duck Typing - don't ask what an object is, just check if it satisfies your
> needs.

Actually, you shouldn't even check if it satisfies your needs. Just use
it.

Tony.
-- 
f.anthony.n.finch  <[email protected]>  http://dotat.at/
Rockall, Malin, Hebrides: South 5 to 7, occasionally gale 8 at first in
Rockall and Malin, veering west or northwest 4 or 5, then backing southwest 5
or 6 later. Rough or very rough. Occasional rain. Moderate or good,
occasionally poor.