logoalt Hacker News

what_hnyesterday at 2:54 PM4 repliesview on HN

Same here with go, then Again go doesn't throw!


Replies

gf000today at 6:09 AM

It just swallows errors, so you don't even know about it!

xdavidliuyesterday at 3:35 PM

surely 'throw a npe' means something very similar to something that Go does

show 1 reply
unscaledyesterday at 7:53 PM

Go panics.

za3faranyesterday at 6:19 PM

Golang doesn't have solutions like these:

* https://jspecify.dev/docs/user-guide/

* https://openjdk.org/jeps/8303099

show 1 reply