Remix.run Logo
pjmlp 12 hours ago

Java doesn't have unsigned as primitive types, because James Gosling did a series of interviews at Sun among "expert" C devs, and all got the C language rules for unsigned arithmetic wrong.

Yes I miss them in Java as primitives, however there are utility methods for unsigned arithmetic, that get it right.

layer8 11 hours ago | parent [-]

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

pjmlp 3 hours ago | parent [-]

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