lua-users home
lua-l archive

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


On Wed, Jun 4, 2014 at 12:13 PM, Axel Kittenberger <axkibe@gmail.com> wrote:
> I also don't know of any other language that supports this


python does:

def s(a,b):
    return a+b

s(1,2)
=> 3

s(1,2,)
=> 3

s(1,2,3)
=> TypeError: s() takes exactly 2 arguments (3 given)



-- 
Javier