[nem-en] Improvement in where macro

vc vc at rsdn.ru
Thu Feb 1 03:57:41 CET 2007


> Should we have more generic solution for single match?
> Something like
> 
> def b = x is Some(y) when y > 100;
> or
> def b = x match Some(y) when y > 100;
> 
> ???

No. It's bad design. 

For example, what will be contain "b" if "x" is None()?





More information about the devel-en mailing list