« Return to Thread: Naming collection operations

Re: [scala-internals] Naming collection operations

by Tony Sloane :: Rate this Message:

Reply to Author | View in Thread

On 11/05/2009, at 6:18 PM, martin odersky wrote:

> I have a question concerning an alternative naming for the + and -
> methods on sets and maps.
> We need a good letter-based name for the purely functional version of
> these methods. `with` and `withOut` would have worked except that
> `with` is a reserved word.

How about withIn and withOut?  Nice symmetry there...

Tony

 « Return to Thread: Naming collection operations