4 ms·
Or use a better language ;-). E.g. in Scala you can use the LinearSeq trait, Ruby the Enumerable mixin to get all the benefits without the drawbacks of Java sty
by nvarsj 13y ago
Or use a better language ;-). E.g. in Scala you can use the LinearSeq trait, Ruby the Enumerable mixin to get all the benefits without the drawbacks of Java style subtyping.
- laureny 13y ago> Or use a better language ;-). E.g. in Scala You might want to watch Paul Phillips' recent talk: http://www.youtube.com/watch?v=4jh94gowim0 http://www.youtube.com/watch?v=4jh94gowim0 You will probably start changing your mind about whether Scala is a "better" language. Especially on the collections side. > to get all the benefits without the drawbacks of Java style subtyping. Actually, the Scala collections have the exact same problems caused by subtyping that Java does (and quite a few more actually, as Paul explains).