News for hackers. Stuff that matters.
Re:F() vs. F(void) in C vs. C++ by tropo on Tuesday May 14, 2019 @08:40PM (#19915318)
Wow, it is painful to see that they still haven't accepted case ranges. They are supported by gcc, clang, and icc. Like so:

case 123 ... 456:

Switching on strings is another thing people have been wanting for half a century. It would seep up many programs, because most programmers don't bother to generate a perfect hash or a carefully-balanced tree of "if".

There are no comments on this comment yet.