Closed GoogleCodeExporter closed 9 years ago
http://www.bime.ntu.edu.tw/~ttlin/Course02/download_files/TECH_NOTE_02.PDF says
10). Constant Naming Guidelines
The names of variables declared class constants should be all uppercase with
words
separated by underscores. It is recommended to use a grouping naming schema.
Example (for group AP_WIN):
AP_WIN_MIN_WIDTH, AP_WIN_MAX_WIDTH, AP_WIN_MIN_HIGHT, AP_WIN_MAX_HIGHT
The problem I see is that names that are all upper-case with no underscores
could be constants, or could be upper-camel-cased namespace, class or method
names. "IO" in particular, could also be an interface name.
Would you suggest that I special case these names or is there some way, without
a full-parse, to distinguish the two.
Original comment by mikesamuel@gmail.com
on 5 Mar 2011 at 4:29
Closing for lack of activity.
Original comment by mikesamuel@gmail.com
on 5 Feb 2013 at 12:46
Given the constraints cited in your comment 2 years ago, I can see why this is
problematic. Short of parsing the code it would be difficult to infer what
should happen in this scenario.
Original comment by laka...@gmail.com
on 5 Feb 2013 at 4:26
Original issue reported on code.google.com by
laka...@gmail.com
on 20 Apr 2010 at 3:43Attachments: