[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Strings and metamethods (Was: A guide to building Lua modules)
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 16 Apr 2014 10:48:31 +0200
On Wed, Apr 16, 2014 at 10:41 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> Quite an attractive idea now that we have so many new metamethods.
> Unfortunately string-to-number coercion creates pretty Lua examples
> for Gary Bernhardt's next talk on Wat.
How strongly do people feel about string-to-number? It always felt
like something that belongs in lesser languages. What is so hard
about explicit tonumber()?
Such a change would break some programs yes, but in a very obvious way.