[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Addition of map() and filter().
- From: André Ericsson <eandre@...>
- Date: Mon, 12 Oct 2009 23:50:15 +0200
> I may have missed something while reading through this, but why not
> use tables, like this?
> function tostringall(...)
> local t={...}
> for k,v in ipairs(t)
> t[k]=tostring(v)
> end
> return unpack(t)
> end
I believe the reasoning against that was garbage creation concerns.
The simple cases at the beginning of the function were added due to
performance concerns.