3 ms·
So now I need an emacs package that can parse my c++ and can replace all instances of the auto keyword with their actual types. That way I can develop quickly u
by dkhenry 12y ago
So now I need an emacs package that can parse my c++ and can replace all instances of the auto keyword with their actual types. That way I can develop quickly using auto but I can keep the code maintainable by having full type signatures.
- cheepin 12y agoAs mentioned in another comment, the use of 'auto' isn't just to shorten an unwieldy type name. > The primary use-case of auto returns is for templated functions where the return type depends on the thing passed in.
- dkhenry 12y agoNormally I feel the c++ standards committee has great ideas, however this is not one of them. If you want templated lambdas then you should use templates.