Slashdot Mirror


Java Gets Templates

lastberserker writes "Call them all you want - generics, parametrized types, thingamagic mumbojumbo - but (tada!) Java gets templates in 1.5 release. Nice landing after 5+ years of dancing around a bush. Competition is good, pardon my pun."

1 of 121 comments (clear)

  1. Re:OMG templates totally rule! by JohnFluxx · · Score: 1, Redundant

    I'm confused - I thought that's why everything inherited from the Object class?

    Object Max(Object x, Objecty) {
    if(x > y) return x else y;
    }

    or some such - my java is rusty. perhaps you need to standardise on a function, say, x.biggerthan(y) and ensure it is transitive, reflexive, commutive etc...