People in glass houses shouldn't throw rocks. People in software development shouldn't throw anything.
TL;DR=throw and raise are fuck ugly anti-patterns. Golang got it right. In typescript, just use type unions with you return type and a custom error type. Yesterday, my code hit an exception, and I had no idea why. When I went to look at what the cause could be, my eyes started welling up. Not out of pride, but out of…