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

Maurizio Cimadamore maurizio.cimadamore at
Thu Jan 15 11:35:05 UTC 2015

> That is how I was intending to implement it, but if I don’t want to
> subclass then I need have a type something like
> Class Optional<any T> {
> 	final T value;
> 	final boolean hasValue;
> }
> And that means I need to set value to something, even for the empty case.
> Hence the need for defaults.
Right - I hear you.

> Duncan.

More information about the valhalla-dev mailing list