Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
minexew
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
List of computer history videos, documentaries and related folklore (2018)
(github.com)
90 points
by
minexew
7y ago
|
6 comments
2.
▲
TempleOS programs in Linux user-space, part 2: Anatomy of a kernel
(minexew.github.io)
4 points
by
minexew
7y ago
|
0 comments
3.
▲
by
minexew
9y ago
I should have clarified more; you'd use this for switches where you need to always handle all cases. Then if a you add a new value to the enum but forget to update the switch, you get a compile-time error instead of a buggy program.
4.
▲
by
minexew
9y ago
My absolute favorite for modern C++ is -Werror=switch Using this, you can enforce that a switch statement over an enum value is complete (covers all cases) simply by omitting the default case.