Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Because String is a class, wrapping an array of chars with a bunch of defined methods.
-
String should always be treated as a class and should follow the same naming convention.
Fuck c++ and c# for lowercase string. -
Well, because you use int a lot more than any other data type so it makes sense to make it short. And String is uppercase because it is not a primitive type, you could also use Integer and Boolean instead of int and boolean but that would be a waste of memory if it is not explicitly needed.
-
@jespersh Yeah but the standard is to use string when declaring variables. Plus everything else about C# naming conventions is fucked too.
-
@D3add3d Well, if it's named boolean I don't belive it should be abbreviated to int
-
@ScriptCoded The thing is that JVM does not really know a "boolean" - it behaves and operates in exactly the same way as "byte", it probably was not meant to exist and int is probably directly linked to int in C
-
@D3add3d Hmm, didn't think of it that way. Though I guess they could still have named it bool 🙈
-
@irene Uh, I never said there is actual bool in C and it is byte, not int. 32 bits for a one bit variable would be quite the waste of space
Edit: Ooooh, you probably meant to reply to @ScriptCoded
Related Rants
Normal lang:
int
bool
string
Java:
int
boolean
String
rant
just why?!?!?!?