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

Comment by layer8

19 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  11 hours ago

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

  • layer8  4 hours ago

    There’s nothing preventing you from doing so.

  • uecker  8 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