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

Handling errors in JavaScript (& a brighter red color?) #38

Open
jinh0 opened this issue May 26, 2021 · 0 comments
Open

Handling errors in JavaScript (& a brighter red color?) #38

jinh0 opened this issue May 26, 2021 · 0 comments
Labels
question Further information is requested

Comments

@jinh0
Copy link
Collaborator

jinh0 commented May 26, 2021

Handling error cases in JavaScript doesn't look that pleasant:
Screen Shot 2021-05-26 at 11 36 47 AM

I've debated whether the Error() object even deserves to be red since it is actually the prudent, future-proofing developer who writes error handling. Maybe Error should be the Special color, SpaceduckPurple? Or we could just make the red color more pleasant to look at by making it brighter.

Also, why should throw be orange? I think it would be more fitting to be green like all other function calls such as return (which is what throw substitutes).

@jinh0 jinh0 added the question Further information is requested label May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant