Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java String Comparison

Name: AWP 2012-05-11 22:15

Java is such a shit language, are you kidding me?

Strings have a .compareTo() method for string comparison, but no support for if (string1 == string2)? The fuck is the  point of that!?

Name: Anonymous 2012-05-11 22:37

Your objection to Java is that it doesn't have enough syntactical inconsistencies for ill-conceived primitives in a language that's supposed to be archetypically OO?

Name: Anonymous 2012-05-11 22:49

Java doesn't do string1 == string2 because Strings are Objects and == only works for reference equality in as far as Objects are concerned.  Java Strings have special perks, such as the concatenation operator and the equality operator, but are otherwise Objects.  Have a nice day.

Name: Anonymous 2012-05-11 23:42

>>2

and yet every other OO language has this for the sake of consistency and accessibility

Name: >>3 2012-05-11 23:51

Excuse me.  "Concatenation operator and the assignment operator."

Name: Anonymous 2012-05-12 0:01

Because it doesn't have operator overloading.

Name: Anonymous 2012-05-12 0:10

good languages (javascript) don't support operator overloading because people abuse it, eg for vectors

Name: Anonymous 2012-05-12 4:53

>>1
Neither does C. Guess why.

Name: Anonymous 2012-05-12 5:15

> LOL overloading is useless and is abused by fagstorms to write unreadable unmaintainable shit!
 > But strcat() is inconvenient and ugly, so check out our special new concatenation operator!

>>8

Even C has limited overloading: 2 + 2 and 2.0f + 2.0f, for example.

Name: Anonymous 2012-05-12 5:31

>>8
C is a low-level language designed to run on a PDP-11 with 4K of RAM.

Name: Anonymous 2012-05-12 5:51

Chack am

Name: Anonymous 2012-05-12 6:14

>>8
because they're both fucking shit.

Name: Anonymous 2012-05-12 8:03

>>10
C isn't an interpreter, it doesn't run.

Name: Anonymous 2012-05-12 23:21

>>13
Interpret my anus

Name: Anonymous 2012-05-13 0:26

Last time I checked you can do if(String1 == String2) in java...

Name: Anonymous 2012-05-13 0:41

>>15
Except that was not string comparison.

Name: Anonymous 2012-05-13 1:40

...
You should stick with Blitz Basic, MDickie.

Name: Anonymous 2012-05-13 7:06

This whole thread, that's what.

Name: bampu pantsu 2012-05-29 4:54

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List