Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gclaramunt
on Dec 30, 2014
|
parent
|
context
|
favorite
| on:
Everyday hassles in Go
OTOH, I think is part of the point:
> file, err = os.Open("file.txt") > if err != nil { > ... handle error ...
A type system with generics can use types to make an error a different type and produce a compile error if you don't handle the case without making the code more complex.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: