[Bug 29713] Feature request: add rest parameter

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29713

--- Comment #9 from Michael Dyck <jmdyck@ibiblio.org> ---
We might be able to make it work in the current model by saying that declaring
a function with a rest parameter adds an infinite set of entries to the
statically known function signatures and the named functions.

So Abel's example in comment 5 would be a static error, but if we ignore the
fixed-arity declaration (and also the odd syntax for function decls), then the
questions about named function references remain. My inclination would be that
they all return the same function value. That'd be simpler than fabricating an
infinite set of different function values, one for each different arity.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 29 June 2016 15:34:04 UTC