overload patterns/anti-patterns

Doug Lea dl at cs.oswego.edu
Sat Dec 29 08:29:13 PST 2012


On 12/29/12 11:19, Brian Goetz wrote:
>>> Similarly, it is a key goal to make overloading on specialized return
>>> type safe,
>>
>> Modulo the above? Or is this an important enough goal to require
>> that void actions use braces?
>
> We initially tried that -- and people *hated* it.

Right. But in the current pick-your-poison context of also wanting
seamless coexistence with primitives, people might hate it
less if it saves them from constantly needing to apply casts.

This is just a thought; I'm not quite advocating. But I do
notice more confusable/confused cases as Int* stuff
is added to lambda repo. This is partly just my local problem
mixing different javac vs jdk snapshots, but might also be
a bad omen.

-Doug




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