Better Error Handling in JavaScript / Typescript
The Inspiration
When I was exploring Go, I came across function calls that returned the error alongside the result.
fd, err := os.Open("test.go")
This motivates developers to account for errors at the beginning itself and not as an afterthought. Thi...
blog.sujeet.pro5 min read