« Return to Thread: Naming collection operations

Re: Re: [scala-internals] Naming collection operations

by Rob Dickens-2 :: Rate this Message:

Reply to Author | View in Thread

including/excluding

or incl/excl

2009/5/11 Viktor Klang <viktor.klang@...>
inject / reject ?


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) ?

Cheers

 -- Martin



--
Viktor Klang
Senior Systems Analyst

 « Return to Thread: Naming collection operations