4 ms·
In this particular example, all it does is reverse the order of return type wrt arguments and function name. I still find this syntax more readable with complic
by int_19h 4y ago
In this particular example, all it does is reverse the order of return type wrt arguments and function name. I still find this syntax more readable with complicated return types because you no longer have to carefully parse it to see where the type ends and the name begins.
In the more general case, having the return type follow the function name means that it can reference parameters in sizeof(), decltype() etc.