On Mon, May 11, 2009 at 11:31 AM, martin odersky <martin.odersky@...> wrote:
On Mon, May 11, 2009 at 11:25 AM, martin odersky <martin.odersky@...> wrote:
> On Mon, May 11, 2009 at 11:03 AM, Jorge Ortiz <jorge.ortiz@...> wrote:
>> At the risk of method overloading, I'd suggest union/minus
>
... and I really want to avoid method overloading for generic
collections; in conjunction with type inference it is more dangerous
than might seem at first. E.g. how do you resolve this:
val s: Set[Set[String]] = Set.empty
s union empty // is this Set.empty or Set(Set.empty) ?