I didn't find an open language feature for varargs or rest params, so it's probably one of those "later" issues. Of course, if you have some compelling use cases, please do file a new feature request at dartbug.com for review in the future.
Thanks,
Seth
Ladislav Thon
unread,
Jun 14, 2012, 4:07:47 AM6/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kevin Moore, General Dart Discussion
Is there a model in Dart for saying "0 or more of this thing" in a
function def? Similar to "params T[] args" in C# or "*args" in python?
Did I miss it? Planned? Open issue?
IIRC, Dart used to have those, but they were removed because they didn't play nicely with optional/named arguments. I hope they are coming back, sooner or later.