[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (work2) now available
- From: Miles Bader <miles@...>
- Date: Fri, 15 Jan 2010 07:08:49 +0900
Ignacio Burgueño <email@example.com> writes:
> Even the common idiom of "t[#t + 1] = something" will have to take care
> of checking the type of #t before doing arithmetic with it.
No it won't. It's perfectly fine for code to assume the that a length
is a number, and people will continue to do so.
If somebody abuses __len for weird uses, it's their responsibility to
deal with the fallout, not the language's; they'll just have to make
sure their funny object doesn't get used in a context where it will be
assumed to be a table or whatever.
You're worrying too much.
Youth, n. The Period of Possibility, when Archimedes finds a fulcrum,
Cassandra has a following and seven cities compete for the honor of endowing a