Hacker News new | ask | show | jobs
by OssetianOdin 3290 days ago
I partially agree with "Orthodox C++". Templates should be used only when needed and for turn the code simpler(not like the abomination used in most of Boost libraries).

But also, i don,t see any sane reason to reinvent the wheel and reimplement basic stuff like thread/mutex classes when the C++ version works well. Or using "NULL" instead "nullptr", or using that pre-processor macro garbage instead templates/constexpr, etc

I think some modern C++ features, that if well used, turn the code much clear and expressive.

1 comments

When I started the project C++11 was not supported well on most compilers. I'm fine with new features when they don't limit my freedom.

I'm fine with nullptr, it is going to replace NULL very soon.

You should just replace it and define a nullptr macro for older compiles.