DIP32: Uniform tuple syntax
Timon Gehr
timon.gehr at gmx.ch
Fri Mar 29 08:32:19 PDT 2013
On 03/29/2013 04:20 PM, kenji hara wrote:
> ...
>
> I can agree that $identifier looks weird, but a feature to do it
> is*necessary*.
> ...
eg. Haskell does not have it. (but it has pattern guards)
Another thing, what do you do if there are multiple matching patterns in
a switch?:
final switch({1,2}){
case {1,y}: ...; break;
case {x,2}: ...; break;
default: ...; break;
}
More information about the Digitalmars-d
mailing list