[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: petition to keep ipairs alive
- From: HyperHacker <hyperhacker@...>
- Date: Wed, 19 May 2010 13:26:36 -0600
On Wed, May 19, 2010 at 10:59, Norbert Kiesel <nkiesel@tbdnetworks.com> wrote:
> Is deprecating ipairs really necessary? I know it can be replaced for
> most parts with a numeric for loop, but these often look and feel
> clumsy. There are a few other "syntactic sugar" constructs in Lua, so
> why is ipairs singled out?
>
> </nk>
>
>
>
Since it's not really useful (same functionality as a loop), I'd be
for removing it, but to just yank it out will break lots of code. I'd
at least leave it in for 5.2, and note in the manual that it's
deprecated and what you should use instead. That gives people a decent
amount of time to update their code.
Keep in mind though that Lua is used in a lot of games and there are
probably plenty of games that won't update, and/or have many users
using scripts they got off the web when they don't actually know Lua.
Removing anything is going to introduce some version confusion when
scripting for games that still use 5.1, and break a lot of custom
scripts (whose authors may not care anymore) for games that update to
5.2.
--
Sent from my toaster.