|
|
|
|
|
by dymk
1401 days ago
|
|
I say that because I would hate to be the person that has to ramp up a junior engineer on a project that uses a library like this. I've written my fair share of code like this, and while you and I might grok it (and probably have a fun time figuring out how it works in the process), most people will hit a brick wall the moment they have to debug the 1000 line error that Clang or GCC will give you when there's a type error. This is the kind of thing that belongs in language-feature land (so you get tooling support, reasonable compiler errors, etc), not library-land. |
|
Again bringing up my STL example: This is just not how C++ runs. I’ve seen my fair share of std::__v1::basic_string<char, char_traits<char>, DefaultAllocator<>> errors. Some would argue a string type should be language-level, and they might be right, but the committee disagrees.