On 30/11/2015 21:02, Marvin Humphrey wrote:
For labeled parameters, I continue to prefer the current behavior but have
been trying to listen and grok opposing views.  For positional arguments, I
don't think it matters as much and I would be willing to compromise and
willing to tolerate a certain amount of inconsistency for the sake of the
group.

OK, then let's keep the current behavior.

If we stick with "undef means default", we should also consider to disallow
undef for Boolean and number arguments if there's no default.

That should be the current behavior for *all* arguments in the Perl bindings,
unless a change has gone through that I missed.  Arguments for which no
default value is specified are required, and either failing to supply the
argument or supplying an undef results in an exception.

From a quick look, this used to be the behavior for labeled arguments but not for positional arguments. Now that the conversion of labeled args uses the same code paths as for positional ones, this check isn't done anymore. I'll fix it and add some tests.

Nick

Reply via email to