News for hackers. Stuff that matters.
Re:Everything about Java 8 by smackfu on Wednesday March 27, 2013 @12:26PM (#5450343)
It just seems an odd hill to die on. Just a minor little feature that most people would use only occasionally in their objects.
Re:Everything about Java 8 by masklinn on Wednesday March 27, 2013 @12:38PM (#5450426)
> Just a minor little feature that most people would use only occasionally in their objects.

Yeah until you have to work with java's Bignums one day, then you start wanting to choke people to death.

Re:Everything about Java 8 by PySlice on Wednesday March 27, 2013 @11:37PM (#5453245)
Yeah, I guess it sucks if you work with Bignums. I would be happy if BigInteger and BigDecimal were promoted String-level language support: still implemented as classes, but with compiler support. They could add indexing [] for collections, but I can live with .get() and .put().

Some people seem to think that if they don't use, then it doesn't matter. In many business applications, you don't even need floating point (you just transfer data to the database and back), anyway.

Are floats and doubles "little features"?

In computer graphics, you need lots of floating point calculations. Are ints and longs "little features"?

In embedded software, you usually don't want to use resizable strings (C doesn't even have this feature built-in), because reallocations are expensive or unavailable. Are resizable strings (or containers) "little features"?

Different programs have different needs. If you haven't stumbled upon a good use case, doesn't mean that it's useless.

Re:Everything about Java 8 by smackfu on Thursday March 28, 2013 @10:03AM (#5454777)
This same logic can be used to defend any "little feature". Language design is all about where you draw those lines.
Re:Everything about Java 8 by PySlice on Thursday March 28, 2013 @12:37PM (#5455888)
That logic is just a starting point (just to avoid the "I don't need it, why can't you be just like me?"), not the whole thing.

Then you have to take into account a few other criteria, such as [1] internal coherence in the language, [2] difficulty in implementation (and explaining to others) [3] what your target audience is, and what they want, [4] what competitors are doing.

I think full operator overloading would hurt [2], but special-casing Bignums would not hurt [1], [2] at all (as I said, JSP EL already have +,-,*,/, etc. , String already have +, +=).

[3] This is what this thread is all about, no need to repeat :-D

And [4]... Well in this case Java is really playing catch up.

Re:Everything about Java 8 by stelonix on Wednesday March 27, 2013 @12:34PM (#5450399)
I disagree wholeheartedly: the verbosity caused by a lack of such an 'irrelevant' feature makes my eyes bleed.

It doesn't really matter, some people see classes/objects as a minor feature too. I agree with him: operator overloading is not a minor feature and it's probably one of the reasons I am not very fond of Java.

Re:Everything about Java 8 by MartinCron on Wednesday March 27, 2013 @02:22PM (#5451107)
It just seems an odd hill to die on.

There's an axiom to be found somewhere there. If it's a hill, someone will be willing to die on it.