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.
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.