Email or username:

Password:

Forgot your password?
bouncepaw πŸ„

I wonder who in the Java department thought that making bytes signed is a good idea.

3 comments
Π“Ρ€ΠΈΠ³ΠΎΡ€ΠΈΠΉ Клюшников

ΠŸΠΈΡˆΡƒ Π½Π° Π΄ΠΆΠ°Π²Π΅ всю Тизнь ΠΈ Π½Π΅Π½Π°Π²ΠΈΠΆΡƒ это, Π°Π³Π°

Π“Ρ€ΠΈΠ³ΠΎΡ€ΠΈΠΉ Клюшников

Camel, at the very least the fact that you have to do (byte)0x81 because otherwise it's "wrong type" because technically the range of byte is -127 to 127 and this exceeds that. You can't just assign shit to byte arrays, you always have to work around the signedness. They're also a pain in the ass to output or see in the debugger. All these unnecessary casts, yet I've never, ever, encountered even just a single use case where bytes being signed would be beneficial.

Go Up