[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Microlight (was Re: paving cowpaths with libraries)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 20 Feb 2012 13:48:20 +0200
Op 20 februari 2012 13:03 schreef Ross Bencina <firstname.lastname@example.org> het volgende:
Do you think table.insert should be taken as a guide that "Lua style" function design is to overload things in semantically confusing ways? Is there really an benefit for conflating insert() and append().
On 20/02/2012 5:56 PM, steve donovan wrote:
(There is a temptation to game the system and overload functions too
much. table.insert is already a standard function which is really two
functions, insert() and append())
That design comes from long ago, right back to Lua 3.2 IIRC. It would be unfair to take it as a representative sample of Lua style in 2012.