mozilla/rust — pull request #1967 by brson (2012-03-12 23:00:06+00:00)
Title: Overhaul constructor naming in libs

This attempts to bring our constructor naming in line with the conventions discussed on IRC and codified in the [style guide](https://github.com/mozilla/rust/wiki/Note-style-guide).

Most constructors are now just named after the type they construct. In some cases this involved tweaking the types a bit. For example the opaque task_builder type went from

```
enum task_builder = {
...
};
```

to

```
enum task_builder {
task_builder_({
....
}
}
```

Other functions were changed to use the `new_` prefix. No functions in core ended up named this way.

The `vec::init_*` functions are now `vec::from_*`.

In `std::map`, even though the hashmap constructor could have been named `hashmap`, I named it `new_hashmap` to be consistent with all the other convenience constructors in `map`.

It doesn't mess with the `io` module so as to not create too many conflicts for graydon's work.