logoalt Hacker News

xdavidliuyesterday at 3:35 PM1 replyview on HN

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


Replies

mahboiyesterday at 7:08 PM

It's a panic in Go, not an exception. In practice that's usually a whole process crash. You can catch panics and kinda use them like exceptions, but it's not conventional.

show 1 reply