[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: implicit conversions in Lua -- what is idiomatic?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 6 Jan 2014 09:11:22 +0200
2014/1/6 Josh Haberman <jhaberman@gmail.com>:
> So my first question is, does it seem Lua-like to allow implicit
> string <-> integer conversion when it is safe?
In expressions, string<-integer is Lua-like, yes. string->number
is the status quo, but controversial, and Roberto has implied [1]
that it might go.
[1]: www.lua.org/wshop12/Ierusalimschy.pdf (p36)