-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.
Description
Issue by gsingh93
Saturday Jun 07, 2014 at 16:49 GMT
For earlier discussion, see rust-lang/rust#14726
This issue was labelled with: A-syntaxext in the Rust repository
I wanted to create an issue first asking about this before submitting a pull request.
Can I go ahead an implement hashmap!()
, hashset!()
, treemap!()
, and treeset!()
macros for constructing those collections with the given arguments? The syntax would be:
let h = hashmap!("foo" => "bar");
let s = hashset!("foo");
I already have these macros implemented in my own projects, so I'd just have to add them to macros.rs.
If I can add these, is there a process for testing macros? Or would I just replace all occurrences of hash{map,set} and tree{map,set} creation in the tests by the macros?
lloydmeta, oyiptong, 0xSiO, battisti, sunjay and 92 morestepancheg
Metadata
Metadata
Assignees
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.