[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Default parameter values
- From: Paige DePol <lual@...>
- Date: Thu, 30 Nov 2017 05:44:02 -0600
Dirk Laurie <dirk.laurie@gmail.com> wrote:
> Does a patch that allows the clumsy idiom
>
> function(a,b,c)
> a = a or 0
> c = c or 1
>
> to be replaced by
>
> function(a=0,b,c=1)
>
> already exist?
I don't know... but default and optional parameters are on my todo list!
I am also adding function overloads to go along with my type system.
Good luck finding a patch if one exists, if not, I will have one eventually!
~Paige