Hacker News new | past | comments | ask | show | jobs | submit login

As you say, in D it's:

    case 0b0001_0000:

    case 0b0101_1000:
which indeed looks much nicer. I have no idea why C++, when copying the feature, didn't use _.

P.S. I copied this feature from 1983 Ada. AFAIK, it was a completely forgotten feature until D had it, then other languages started copying D.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: