pineapplegiant / spaceduck

🚀 🦆 An intergalactic space theme for Vim, Terminal, and more!
https://pineapplegiant.github.io/spaceduck/
MIT License
804 stars 30 forks source link

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

Open jinh0 opened 3 years ago

jinh0 commented 3 years ago

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).