Skip to content

Conversation

filipecsoares
Copy link

Updated the example to showcase the modern switch syntax. The use of the arrow operator (->) and comma-separated case labels dramatically cleans up the logic and prevents common errors associated with forgotten break keywords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant