Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rplnt
on March 14, 2022
|
parent
|
context
|
favorite
| on:
Hacking sum types with Go generics
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
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: