Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
terminatornet3
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
terminatornet3
3mo ago
you don't need a runtime error if you have a compiler error. best of luck with your PR
2.
▲
by
terminatornet3
3mo ago
The original author is correct. Their implementation of an exhaustive check will give you a compiler error if you miss a variant in your switch statement. I much prefer a compiler error over a run time error. It's even recommended in t