Re: Default parameter values
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Default parameter values
- From: Paige DePol <lual@...>
- Date: 2017年11月30日 19:16:01 -0600
Paige DePol <lual@serfnet.org> wrote:
> So, essentially function(a=expr1, b, c=expr1) would just become
> syntactic sugar for the following:
>
> function(a, b, c)
> a = a or expr1
> c = c or expr2
> end
Typo: function(a=expr1, b, c=expr2)
Sorry for the extra post, just wanted to clarify my example!
~Paige