Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

it would conflict with user defined literals which were there before:

  auto operator""_01(unsigned long long l) {
    return 0;
  }

  int x = 100_01; // x == 0
so, as always, backward compat :D

(grepping in my ~ I see at least one occurence of `operator "" _0b` and if you allow `_0b` it's going to be hard to justify not allowing `_0123456`).



A leading underscore just makes it an identifier. After all, ' has a similar ambiguity - is '0' an integer or a character? We use embedded _ in D with no problems.




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

Search: