Message from JavaScript discussions

February 2019

— ?

— 

There are alternatives to throwing, but ideally if you can't produce a sensible answer you need to tell the person calling your function that somehow

— I mean, for a user the info what happend matters. for a dev, the thrown error is more interesting than its message

Message permanent page

— Returning the same type is not a good way to tell the caller that you failed

— I almost exclusively care about the messages

— Only sometimes do I need to look at the stack trace

— But in a throw new Error way

— Ok i get that

— Make it understandable

— For others

— Also, there's a massive duplication of logic here

— What if you get into millions?