News for hackers. Stuff that matters.
Re:Lies we tell ourselves to keep using Golang by DanielHB on Tuesday November 26, 2024 @04:17AM (#42243926)
I am pretty sure if it were for the Typescript creators they would not allow exceptions in the language, but they had to work within the confines of Javascript. Heck they even refused to make exceptions part of the type-system.

It is unfortunate that many of Typescript developers still rely on throwing exceptions around (even in their own typescript code). Result types are totally doable in Typescript and you can always wrap native calls to return result types.

There are no comments on this comment yet.