Arc Forumnew | comments | leaders | submitlogin
3 points by akkartik 5602 days ago | link | parent

Yes, I thought about adding a set of parens around either keyword or rest params. The brace syntax sounds decent. I think it works just as well; it's just a question of what syntax people prefer.

You'd still need support for defaults in extract-opts. Complexity-wise I think the two implementations would be equivalent.

Hmm, one benefit of using a separator like :do: In macros that need just keyword args the opts approach would add redundant syntax to each call.

I don't understand the entire state space here, but I used to think arguments should go into rest params by default, and now I think they should go into keyword args. What do you think?