Hacker News new | ask | show | jobs
by legerdemain 1961 days ago

  > Do you also use one letter variables and parameters?
A question in response to your question... Do you ever give an ALL CAPS name to a class? Why not?

Maybe it's the set of conventions I'm used to, but I find T, U, V familiar and IN, OUT jarring and dramatically less readable at a glance.

2 comments

It might be 'jarring' but looking over the original line I didn't parse what those types were doing at all, and T/U/V wouldn't be any better, while IN/OUT I can understand without explicitly thinking about it.
I use ALL_CAPS in generics so they are easy to tell apart from functionNames and ClassNames