Re:Rust 1.64.0
by cercatrova on Friday September 23, 2022 @12:12AM
(#32947969)
Indeed, it's basically the same as in JS/TS where you just pass an object of key/values rather than have named arguments.
[ Parent
| on HN ]
Yes, but it is a lot cleaner there because you don't need to specify the name of the type and you don't need to do anything special for optional arguments.
I wouldn't mind if it worked this way "under the hood" but syntax sugar for passing that last argument as keyword arguments would be a fantastic quality of life improvement.