Re:Ill-Advised C++ Rant, Part 2 (2016)
by Koshkin on Wednesday October 25, 2017 @05:30PM
(#15554458)
> Define a new wrapper class
For simple types, for which this makes most sense but from which you cannot inherit, it is a lot of work.
This can be really useful in embedded devices where there is no file system but I don't really see the need for it to be part of the language, every time I've needed it the toolchain came with build tools to handle this.
> 11. Switch/case is stupid. No it's not. You want fall/through cases as well and if you can't see why, don't criticize. This is true in pretty much EVERY language that supports switch/case
a smarter option may have been to require an explicit break or fallthrough keyword but we're a good 40 years late.
>12. Still no strong typedefs. There are! Use the explicit keyword on a constructor definition.
Define a new wrapper class (maybe I'm missing something)? It would be a lot nicer if you could do something like `typedef explicit int FooId;`