Serialization opt-in syntax (again)

Brian Goetz brian.goetz at oracle.com
Mon Oct 8 08:20:35 PDT 2012


> Did we rule out
>
> Predicate<String> p = (& Serializable) (s) -> s.isEmpty();
> methodExpectingPredicateOfString((& Serializable) String#isEmpty);
>
> ?  I realize it's more language-innovating than the full conjunctive
> "cast", but it saves all that redundant text...

No, not ruled out.



More information about the lambda-spec-observers mailing list