On 8/11/06, Adam Winer <[EMAIL PROTECTED]> wrote:
I'm +0 on having XhtmlElements or XhtmlAttributes constants.
I've just never felt the urge to type XhtmlElements.TABLE_DATA
instead of just "td".  String constants aren't *always* evil;  for
things that are well known and universal knowledge (like HTML
element names) there's little gained (and much ease-of-development
lost) in pushing the names into constants.  People can use 'em if
they want, but I'd be -1 on requiring their use.

The one benefit I'd see to using a constant is that you detect typos
at compile type rather than at some point later during runtime.

Reply via email to