Comment by candiddevmike

Comment by candiddevmike 2 days ago

2 replies

I do this and think it works really well...

myfunc(arg: string): Value | Err

I really try not to throw anymore with typescript, I do error checking like in Go. When used with a Go backend, it makes context switching really easy...

chamomeal 11 hours ago

I do actually love returning errors in TS. It solved most of the problems I have with error handling.

andy_ppp 2 days ago

They still throw and just have millions of try catch blocks repeated everywhere around almost every function :-/