HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 191802 thumbnail
User 361608 avatar

By baophan
via forums.amd.com
Published: Jun 10 2009 / 10:49

Obviously we need to be careful and not 'misuse' them, but I believe that enums can offer options beyond the traditional static list of values. Here's an example.
  • 16
  • 0
  • 1331
  • 0

Comments

Add your comment
User 368023 avatar

yakkoh replied ago:

0 votes Vote down Vote up Reply

I have been programming for a long time now and I never used 'enum', except of course in exercises.

User 283139 avatar

ceaseoleo replied ago:

0 votes Vote down Vote up Reply

keep programming

User 217678 avatar

mostlyharmless replied ago:

0 votes Vote down Vote up Reply

Keep programming indeed, but in my opinion they are still an underused feature of a language.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.