You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handling error cases in JavaScript doesn't look that pleasant:
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).
The text was updated successfully, but these errors were encountered:
Handling error cases in JavaScript doesn't look that pleasant:
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. MaybeError
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 asreturn
(which is whatthrow
substitutes).The text was updated successfully, but these errors were encountered: