What do we want? Variadics! When do we want it? At some point in the future, but always prioritizing careful design and coherence with the rest of the language!
-
Show this thread
-
For JS folks reading this: variadics are the compiled equivalent to JS' `arguments`. This allows passing in multiple arguments to a function, rather than having to define functions such as join_1(), join_2(), join_3(). Etc. Macros are a workaround, but variadics solve it better
2 replies 0 retweets 5 likesShow this thread -
This Tweet is unavailable.
-
Replying to @RangerMauve
Yes, but it's a static constraint. E.g. a function needs to know the size of the tuple statically, ahead of time — and afaik there's no way of telling at compile time even how many items a tuple contains.
1 reply 0 retweets 1 like -
This Tweet is unavailable.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.