[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Are automatic coercions ever going away?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 31 Jul 2014 12:12:08 -0300
> >> 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.
> >
> > This is a model that might be extended to various other aspects
> > that people have been clamouring for (i.e. at least one person has
> > diffidently requested). A feature that is not in current Lua, but easy
> > to do, is controlled by a compile-time option that does not carry
> > the taint of deprecation. I like it.
> >
>
> Except that over time the source becomes a nightmare of nested #if/#else/#endif constructs… (shudders).
Not to mention the problem of how to test all combinations...
-- Roberto
- References:
- Are automatic coercions ever going away?, Steven Degutis
- Re: Are automatic coercions ever going away?, Roberto Ierusalimschy
- Re: Are automatic coercions ever going away?, Coda Highland
- Re: Are automatic coercions ever going away?, Dirk Laurie
- Re: Are automatic coercions ever going away?, Luiz Henrique de Figueiredo
- Re: Are automatic coercions ever going away?, Steven Degutis
- Re: Are automatic coercions ever going away?, Steven Degutis
- Re: Are automatic coercions ever going away?, Roberto Ierusalimschy
- Re: Are automatic coercions ever going away?, Dirk Laurie
- Re: Are automatic coercions ever going away?, Tim Hill