Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by layer8

20 hours ago

Java has char as an unsigned 16-bit integer type. They should have made byte unsigned as well.

4 comments

layer8

Reply

pjmlp  12 hours ago

Usually you don't do arithmetic with char in Java, this isn't C culture of anything goes.

  • layer8  5 hours ago

    There’s nothing preventing you from doing so.

  • uecker  9 hours ago

    It is not even possible to do arithmetic on char in C.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities