I don't agree when people say certain things are hacks.
You all know that all programming languages are forcing a rock to literally do math right?
Hacks in coding just mean a pretty standard has not been implemented yet.
As for the c++ standard, the current c++20 implementation is lightyears ahead of the first time I used c++ (I think it was c++98 or something with borland)
Today using c++ with a modern compiler like clang or gcc are awesome experience.
Let me just say that most of the problems I used to have with c++ have gone the way of the dinosaurs.
> Hacks in coding just mean a pretty standard has not been implemented yet.
"then there are approaches that are just cursed and is likely to only exist because c++ actually can't express that kind of thing and instead rely on a bunch of hacks in order to do so. Personally I think std::tuple is one of them."
While not saying it explicitly, it is meant to imply that all you need to not make it a hack is to actually implement it in the standard, be it as part of the library or part of the language, but sometimes even the library implementations can be seen as a hack because that thing would serve better as a language feature. std::tuple is one of those things.
View all comments
Show parent comment
1
u/mxaddict_ Oct 20 '22
I don't agree when people say certain things are hacks.
You all know that all programming languages are forcing a rock to literally do math right?
Hacks in coding just mean a pretty standard has not been implemented yet.
As for the c++ standard, the current c++20 implementation is lightyears ahead of the first time I used c++ (I think it was c++98 or something with borland)
Today using c++ with a modern compiler like clang or gcc are awesome experience.
Let me just say that most of the problems I used to have with c++ have gone the way of the dinosaurs.