• Malte (unregistered)
    Comment held for moderation.
  • Michael R (unregistered)

    Comments.SECNOD

  • Rob (unregistered)

    There's always the risk that the enum would have values added, and then you'd need to update the switch.

    With a switch expression, you can omit the default if all enum constants are covered. If an enum constant then gets added you get a compiler error. And to me, that's better than returning some random high number.

Leave a comment on “ReferenceError: HELL is not defined”

Log In or post as a guest

Replying to comment #706464:

« Return to Article