[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Syntax sugar for default arguments
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 21 Apr 2013 08:41:31 +0200
function f(x,y=0)
function f(x,y or 0)
to mean
function f(x,y) y=y or 0
Neither would break existing code.
Which of the above should I choose to implement as a patch?