Look, if you want a language with panics, use Go. If you want a language with exceptions that bubble and can be recovered from, use JS.
@tjholowaychuk @domenic I disagree - though definitely more fragile, throw has been used as panic for as long as I can remember
-
-
@tjholowaychuk@domenic it serves a different purpose than process.exit; if they could be the same is not the point -
@tjholowaychuk@domenic its easy to blame programmers for misusing the language; TC-39 says we're programming wrong - 9 more replies
New conversation -
-
-
@yoshuawuyts in most cases I think returning an error would be nicer than try/catching everything (stat'ing a file etc)@domenicThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@yoshuawuyts in most places yea, things like JSON.parse() shouldn't "panic" IMO, bit of a mixed bag@domenicThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.