News for hackers. Stuff that matters.
Re:A half-hour to learn Rust by gameswithgo on Saturday February 29, 2020 @01:32PM (#22452090)
you can so easily make a macro in rust to do exactly what you want, that it doesn't likely make sense to include it as part of the language. though perhaps the macro should be in the core libs.
Re:A half-hour to learn Rust by j1elo on Saturday February 29, 2020 @01:38PM (#22452120)
Yeah, probably such a macro for maps should be provided in the core libs. It would be more consistent with providing the equivalent one for vecs. From a user (of the language) perspective, having one but not the other is just confusing.

Also writing macros is not the first thing one learns when getting to know Rust, so a learner won't know how to write her own.