top | item 28746874

(no title)

murph-almighty | 4 years ago

One perk I've enjoyed with error verbosity is the ability to spit out different logs depending on where in the function you've failed. I'm not super familiar with the shortcut being described but if I could do something like:

```x := potentiallyBuggyFunction ? genericErrorHandler("log message here", http.StatusNotFound,...)```

Where the `?` is kind of like a null coalescing operator, it might help?

discuss

order

No comments yet.