Re:Facebook is using D in production starting today
by subb on Friday October 11, 2013 @10:51AM
(#6533460)
Well to be honest,
is absolutely not equivalent to a map of int to a vector of ints. Sure in javascript, you can indeed use an object as a map, but you are lacking the type safety that the C++ version provide and all the nice API. Also, in C++11, you can shorten it with auto :
and to be fair with the js, if you want it as short as possible, you could use a using namespace statement for std (although not really recommended) :
or maybe not use new :
I don't think it's that bad. But sure, any dynamic language will be less verbose that a static language because, well, you are removing information...
[ Parent
| on HN ]
There are no comments on this comment yet.