[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PROPOSAL] more luaL_check* in lauxlib.h (for Lua 5.2)
- From: Tony Finch <dot@...>
- Date: Thu, 2 Jun 2011 11:20:13 +0100
HyperHacker <hyperhacker@gmail.com> 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 <dot@dotat.at> 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.