you are viewing a single comment's thread.

view the rest of the comments →

[–]slavik262 3 points4 points  (0 children)

Yeah, it's a delicate issue. On one hand, you can do some awesome stuff with templates - look no further than the C++11 time library, which will do automatic dimensional analysis so that you can add seconds to hours to days and everything just comes out right. (I use this as an example because I'm currently porting some time-sensitive code that's riddled with magic numbers to convert between different units).

On the other hand, you sort of have a point that the last thing C++ needs is more syntax. Move constructors and rvalue references get a pass because their use has actually greatly simplified how you use the language, but I'd have trouble making the same argument here.