[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: petition to keep ipairs alive
- From: Wesley Smith <wesley.hoke@...>
- Date: Wed, 19 May 2010 12:58:46 -0700
Well, 5.2 is going to break a lot of code anyway with the changes to
environments, but I definitely agree that a release where ipairs is
deprecated is needed.
wes
On Wed, May 19, 2010 at 12:26 PM, HyperHacker <hyperhacker@gmail.com> wrote:
> 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.
>