This would be great! However, I would imagine that any changes to function arguments needs include (or explicitly reject) all wanted changes to function arguments. This would include variadic functions and default values.
-
-
-
That's the chicken-and-the-egg problem of named arguments: I want this simple feature, but how it is implemented affects many other pieces with complex parts, so it has to wait until all those complex parts has been solved.
End of conversation
New conversation -
-
-
Hmm now you've made me think about how you could hack this with macros
you could basically generate a struct (which does have named arguments) based on the parameters of a function and then insert it into the call -
I did that! Check out the rubber_duck crate: https://crates.io/crates/rubber_duck … I couldn't come up with a good name for it...
-
Well, I once had a crate named "quack", so you're in good company.
End of conversation
New conversation -
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.