I often see code that include intentional misspellings of common words that for better or worse have become reserved words:
klassorclazzfor class:Class clazz = ThisClass.classkountfor count in SQL:count(*) AS kount
Personally I find this decreases readability. In my own practice I haven't found too many cases where a better name couldn't have been used — itemClass or recordTotal.
However, it's so common that I can't help but wonder if I'm the only one? Anyone have any advice or even better, quoted recommendations from well-respected programmers on this practice?
clsis a common (in fact, the one idiomatic) name for variables/arguments contining actual classes (the ones you declare with theclasskeyword and which everything is an instance of). – delnan Mar 25 '11 at 19:48typedef char ínt? – Jeff Mar 25 '11 at 20:50typedef.) – muntoo Mar 25 '11 at 22:36iñt. There goes my plan for world domiñation. – Jeff Mar 25 '11 at 23:01