Skip to main content

What Giants? - Vote For My Generics RFE

Posted by dwalend on July 18, 2006 at 5:30 AM PDT

Back in May I blogged about simplifying my generics code with dot accessors to the type parameters, to simplify code that currently looks like this:

public class FloydWarshall<Node,
                            BaseDigraph extends IndexedDigraph<Node,Edge>,
                            LabelDigraph extends IndexedMutableOverlayDigraph<Node,Label,Edge,BaseDigraph>,
                            SRing extends Semiring<Node,Edge,Label,BaseDigraph,LabelDigraph>>

into something more like this:

public class FloydWarshall<SRing extends Semiring>

The request for enhancement made it into Sun's database. That whooshing sound may not be a windmill after all.

If you can spare a bug vote, please vote for this RFE. Judging by the evaluation from Sun's engineer, this RFE needs some votes raising it up so the Sun language giants might spot it.

The RFE will also need some good rational discussion. I held back my irrelevant knee-jerk reaction -- "Didn't we all out-grow one-letter-variables when we traded our PETs for C-64s?" I could send a link to an old blog, but even that might distract from the cause.
Please keep in mind that we want these folks to do us a favor. I'm working on a response that frames the RFE as "encapsulation vs. exposure," to dispel the "inference vs. explicitness" suggestion.

Related Topics >>