more band aid coming - Object methods on 'any' tvars

Brian Goetz brian.goetz at
Fri Jan 16 17:18:13 UTC 2015

Sure, we could have done that -- and we might well end up doing that 
(and same with "new T[]").  Don't forget, nothing we do right now 
constitutes any sort of final decision -- especially syntax stuff like 
this.  Right now, we're interested in exploring the impact of 
specialization on migration of existing generic code.  This was a 
reasonable option; there are other reasonable options too.

On 1/16/2015 12:05 PM, Simon Ochsenreither wrote:
>> If you mean "null" as the existing syntax...
> No, just something like:
>   <any T> T default<T>()

More information about the valhalla-dev mailing list