News for hackers. Stuff that matters.
Re:Ending the Era of Patronizing Language Design by jmillikin on Friday May 21, 2010 @01:35PM (#1368053)
Java supports global variables just fine -- in fact, most Java code uses far too many globals for my taste.

Multiple inheritance and operator overloading aren't bad, but at the time Java was designed, nobody had any idea how to use them properly. Python 2 gets MI right (though Py3 fucks it up a bit with magical super()), and Haskell provides a clean implementation of overloading, but it'll be years before these improvements filter through to Java (if they ever do).

Re:Ending the Era of Patronizing Language Design by cabalamat on Friday May 21, 2010 @02:03PM (#1368174)
> Multiple inheritance and operator overloading aren't bad, but at the time Java was designed, nobody had any idea how to use them properly.

Really? I was coding C++ using multiple inheritance and operator overloading around then, and AFAICT was using them properly.

Re:Ending the Era of Patronizing Language Design by jmillikin on Friday May 21, 2010 @03:51PM (#1368553)
Sorry; I meant language designers didn't know how to use them. C++ is a perfect example of operator overloading gone horribly wrong.
Re:Ending the Era of Patronizing Language Design by jules on Friday May 21, 2010 @05:52PM (#1369032)
> Multiple inheritance and operator overloading aren't bad, but at the time Java was designed, nobody had any idea how to use them properly.

It's not hard to figure out a better the way to do it than not doing it at all with a few hours thought. And in fact Dylan got both multiple inheritance and operator overloading right before Java existed.

Method ordering is the most significant problem with multiple inheritance. You arrive at the simple (just use the lexical ordering of the superclass list) or the more complex (Dylan's method ordering, now also in Python) purely by reasoning logically. I'm pretty sure someone like Guy Steele would be able to figure this out.

Operator overloading: what could possibly be worse than x.multiply(y)? You either have a fixed list of operators that you can override by defining a method in a class, or you have an expandable set of operators for which you can specify the precedence and which way it associates. This is not a hard problem.

Re:Ending the Era of Patronizing Language Design by crystalis on Saturday May 22, 2010 @03:08PM (#1370834)
There are two problems - everything that you add distracts the human elements, and adds some computational cost.

The human element ranges pretty far, from the neophile trying to grasp every piece, the seasoned veteran evaluating a new language, the maintainer considering what part to improve, or what patch to consider, and so on.

Not every lawn needs a thousand pink flamingos, even if they're better than no flamingos at all.

Re:Ending the Era of Patronizing Language Design by j_baker on Friday May 21, 2010 @01:58PM (#1368147)
"Multiple inheritance and operator overloading aren't bad, but at the time Java was designed, nobody had any idea how to use them properly."

I think this is an example of the kind of reasoning Feathers was talking about. Perhaps it did make sense at the time, but that's largely irrelevant. What is relevant is that the idea that programmers aren't capable of making decisions on their own isn't a good idea these days.