lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Op 20 februari 2012 13:03 schreef Ross Bencina <rossb-lists@audiomulch.com> het volgende:


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())

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().

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.