News for hackers. Stuff that matters.
Re:Announcing Rust 1.26.2 by _yawn on Tuesday June 05, 2018 @07:44PM (#17243179)
Skepticism towards keyword arguments is something I have trouble understanding. Is it because of some performance consideration?

Thanks for your answer!

Re:Announcing Rust 1.26.2 by Retra on Tuesday June 05, 2018 @10:28PM (#17243930)
Keyword arguments tend to lead to bloated functions that try to account for every possible situation. So they're unidiomatic when compared to C-style functions which tend to always do the same thing in the same way every time you call them.

Of course, I'm assuming you're imagining an implementation where you are allowed to omit keywords to set default values. Naturally if every argument is always required, you don't have this problem.

Re:Announcing Rust 1.26.2 by _yawn on Wednesday June 06, 2018 @11:13PM (#17252970)
I mostly miss them for constructing objects with default values, yes. The alternative is the builder pattern, which involves a lot of boilerplate.
Re:Announcing Rust 1.26.2 by kjeetgill on Thursday June 07, 2018 @12:15AM (#17253232)
Rust has macros. No such thing as boilerplate. Only libraries that havent been written yet. :D
Re:Announcing Rust 1.26.2 by _yawn on Thursday June 07, 2018 @06:51PM (#17261074)
:)) I love macros so much