View Single Post
  #4 (permalink)  
Old 08-07-2007, 11:24 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,118
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Quote:
Well, you can, but in a big project, you have to worry about a typo every now and then, and about case sensitivity. When you use an enum instead, it comes up in IntelliSense ( and you can add XML documentation that will be shown here ) so you can be sure you get it right every time.
Hmm.. I never knew this actually happened when we use ENUM instead of the regular string It's cool, but I think it's kind of weird for some reason to have a variable that's not case sensitive, moreover, it's emphasize more to bad coding practice...

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote