[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Are automatic coercions ever going away?
- From: Sean Conner <sean@...>
- Date: Thu, 31 Jul 2014 16:40:45 -0400
It was thus said that the Great Roberto Ierusalimschy once stated:
> > I'd like to report back the results: we chickened out and didn't do
> > it. The end. :)
>
> Thanks for the feedback.
>
> Just in case, Lua 5.3 will have compile-time options for easily
> disabling these coercions (one for string->number, another for
> number->string), but the "standard" will be with coercions enabled.
Could you possibly have three levels?
1. Status quo
2. Warn about coercions as they happen
3. Disable coercions.
#2 would be very helpful when trying to update the code to avoid
coercions. Or, if that can't be done, a call to determine which "optional"
features are enabled/disabled.
-spc