[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Proposal] Mass-to-string/mass-type/mass-functions
- From: "Soni L." <fakedme@...>
- Date: Tue, 28 Jul 2015 11:34:30 -0300
On 28/07/15 11:28 AM, Dirk Laurie wrote:
Assuming my proposal goes through, print(...) ->
2015-07-28 15:26 GMT+02:00 Soni L. <email@example.com>:
Currently these are the signatures for tostring and type:
tostring (v) -> string
type (v) -> string
Would it hurt to change them to:
tostring (v, ...) -> string, ...
type (v, ...) -> string, ...
(Similarly for math.tointeger/math.type/io.type, maybe also os.getenv, etc)
Vararging a parameter list is a breaking change, even if it is fully
backwards compatible with one-argument calls, because
will currently keep only one of the return values of "myfun". You will
need to insert parentheses in order to preserve that behaviour.
In my reply to a previous post  of yours, I referred to a package
that inter alia offers item-by-item evaluation of a one-argument function
over a vararg.
It'd be nice if we could get rid of print().
Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.