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
  • 998
  • 467

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.