Map.asFunction (original) (raw)

Remi Forax forax at univ-mlv.fr
Fri Jan 4 10:44:13 PST 2013


On 01/04/2013 07:21 PM, Doug Lea wrote:

On 01/04/13 12:17, Remi Forax wrote:

default Function<K,V> asFunction() { return { k -> get(k) }; }

Did we decide not to do this or just forget to do it? Not sure it worth a method as it can be written map::get or set::contains. Good point. Assuming that matching and overload resolution become a little more deterministic soon :-),

always failing is deterministic :)

That's said, I've not found the time to read the latest draft sent by Dan.

there's no reason to encourage people to use an explicit method for these purposes.

-Doug

Rémi



More information about the lambda-libs-spec-observers mailing list