News for hackers. Stuff that matters.
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.
Re:Rust 1.64.0 by kevincox on Friday September 23, 2022 @06:39AM (#32950117)
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.