[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua next version
- From: David Given <dg@...>
- Date: Wed, 24 Jun 2009 12:08:59 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
bb wrote:
> Thank you very much, I think you set the source for clarification of
> some misunderstandings.
[...]
Given the persistent confusion about arrays vs. tables, and the scope
for really nasty hard-to-find bugs if people get it wrong, it might be
worth considering a 'strict mode' option (by default off, of course)
that cause #, table.remove/insert etc to *fail* if you give them a table
that's not an array. By fail, I mean throw an error to cause you
application to stop.
I'd much rather have my application not work in an obvious way than to
not work in a non-obvious way...
- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "They laughed at Newton. They laughed at Einstein. Of course, they
│ also laughed at Bozo the Clown." --- Carl Sagan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpCCUgACgkQf9E0noFvlzjyuwCfft8O+7d+PeUg2JgI1F+vz4Yf
QUsAn2t2+5VvyRDlaJjJkW/9BocuNGrR
=CyNe
-----END PGP SIGNATURE-----