Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kaba0
on April 12, 2023
|
parent
|
context
|
favorite
| on:
Virtual Threads Arrive in JDK 21, Ushering a New E...
> Go's approach is to make error handling something you have to think about for virtually every line of code
But that doesn’t work, and you can’t handle every error at the place of its origin.
seti0Cha
on April 13, 2023
[–]
Seems to me like it does work, based on many successful projects using it. There's nothing that forces you to handle the error at the place of origin, you can pass it on like you do with exceptions. You just can't bubble it up multiple levels.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But that doesn’t work, and you can’t handle every error at the place of its origin.