Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
woah
on March 14, 2022
|
parent
|
context
|
favorite
| on:
Hacking sum types with Go generics
There's a huge gain in functionality: The compiler will tell you if you messed up
rplnt
on March 14, 2022
|
next
[–]
Go is very fast to lint. Having linter to check whether your switch statement is exhaustive is a good idea regardless.
woah
on March 15, 2022
|
parent
|
next
[–]
That's irrelevant to the task at hand. The linter can't tell you if your type switch can handle every `interface{}` that might be passed into it some day.
lawrjone
on March 14, 2022
|
prev
[–]
100%
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: