Y
Hacker News
new
|
ask
|
show
|
jobs
by
mathias_10gen
4614 days ago
Actually in C++11 you can just say:
auto id = mongo::OID("1234...");
This gives you much (not all) of the brevity and flexibility of dynamic typing, while maintaining the power and safety of static typing.