Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keywords: default vs otherwise #2

Open
jasonkuhrt opened this issue Oct 8, 2012 · 0 comments
Open

keywords: default vs otherwise #2

jasonkuhrt opened this issue Oct 8, 2012 · 0 comments

Comments

@jasonkuhrt
Copy link

I don't think default should ever be used. otherwise is fine, and in some cases (very short cases) _ is better. But Adding a third possibility, default, is useless because there is no advantage. Remembering how to write/read the variance between switch case default and switch | otherwise is pure overhead.

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

No branches or pull requests

1 participant