4 ms·
Idioms are language warts. There're the result when the language is not expressive enough to solve a certain problem. An idiom basically means "memorize this th
by tammartmositzk 4y ago
Idioms are language warts. There're the result when the language is not expressive enough to solve a certain problem. An idiom basically means "memorize this thing and use it next time you see this problem". Overload "idiom" might be the latest example. When using std::visit(), every time I have to search and put some variadic using thingy with a deduction guide. I'm with your fellow software developers, because I don't memorize any of them and I don't think it's a merit about seniority. I hope C++ doesn't have to have any more idioms in future.