Why are there no binary literals in Java?

后端 未结 6 918
花落未央
花落未央 2020-12-17 09:15

Is there any particular reason why this kind of literal is not included whereas hex and octal formats are allowed?

6条回答
  •  天涯浪人
    2020-12-17 09:42

    There seems to be an impression here that implementing binary literals is complex. It isn't. It would take about five minutes. Plus the test cases of course.

提交回复
热议问题