
John Carmack
@ID_AA_Carmack · Oct 9, 2020
I have seen first hand the errors that can occur from untyped enums, but sometimes converting to an enum class takes so many static_cast<int> littered around the code that it doesn't feel like a win. I still need to remind myself to default to using enum class on new code.
Elon Musk
@elonmusk
Compilers need to improve imo. Most type, pointer (or other memory) problems can be detected at compile time or disambiguated by asking the user.
08:38 PM · October 9, 2020 · 0 views
196
103
2.9K