reem/rust-typemap — pull request #4 by lraccomando (2014-08-23 17:30:09+00:00)
Title: (feat) Updated syntax to be closer to that of a HashMap.

Proposal / Implementation of some syntax updates.

The ```map.insert::(Value) ``` syntax is a little unwieldy and differs from the HashMap syntax of ```hash_map.insert(key, value)```.

This PR updates the TypeMap syntax throughout to accept an unused key argument to all methods which allows the following:

```rust
// Inserting
map.insert(Key, Value);

// Finding
map.find(Key);

// Containing
map.contains(Key);

// Removing
map.remove(Key);
```

This still allows for the explicit declarations of types ```map.insert::(Key, Value)``` but doesn't require it, which I think is nice.

Not sure if this is something you are interested in updating but I thought I'd put it together as I think it makes the syntax a bit more accessible, particularly for people just getting started with the language.