News for hackers. Stuff that matters.
Re:Announcing Rust 1.19 by steveklabnik on Thursday July 20, 2017 @04:31PM (#14816030)
> But then "kwargs" are just that, a dictionary.

Maybe Ruby on Rails is an exception, but while I used to be a fan of default/keyword arguments, especially in combination, seeing how they were used there made me very much not like them any more. It's impossible to tell what's going on.

Re:Announcing Rust 1.19 by coldtea on Thursday July 20, 2017 @07:40PM (#14817101)
How about how Smalltalk, Obj-C, Swift uses them?

It's very clear there...

Re:Announcing Rust 1.19 by eridius on Friday July 21, 2017 @01:41AM (#14818320)
FWIW, Obj-C doesn't have keyword arguments. It just has infix method names. But all arguments in an Obj-C method are required, and the order is significant.

Similarly, in Swift, the order of defaulted arguments is significant. So you wouldn't see anyone do something like that crazy matplotlib method in Swift, because remembering the order of all the arguments in that function is impractical.

Re:Announcing Rust 1.19 by Gankro on Thursday July 20, 2017 @09:20PM (#14817435)
Yeah when we do named args it will very likely be based on Swift, but a bit different due to backwards compat and the desire to integrate it into existing methods like Vec::from_raw_parts and ptr::copy.