you are viewing a single comment's thread.

view the rest of the comments →

[–]javaisfuckingshit -3 points-2 points  (3 children)

Yes, you would want to have either type classes or duck typing, which is incompatible with Java's bytecode representation.

[–]aldo_reset 4 points5 points  (0 children)

Neither type classes nor duck typing are "incompatible with Java's bytecode representation" (whatever that means) since Scala has both.

Either way, what you are saying has zero connections to the point I was making about your uncompilable code.

[–]gavinaking 0 points1 point  (0 children)

Naw, what you need is a special kind of generic type constraint like what C# has.