rsdn/nemerle — Issue #235: Match classes, interfaces, variants without 'where' keyword
Author: CodingUnit
Created: 2012-01-07 09:32:34+00:00
State: open

There to be good and shorter to match constructor and record pattern in PM without where keyword:

```nemerle
[Record]
class Test
{
public field : string;
}

def test = Test("abc");
match (test)
{
// | Test where (field = f) => f // old syntax
| Test(field = f) => f
// | Test(f) => f // also work
}
```
this may work with variant base classes and interfaces (to check properties) with same syntax