graydon/rust — Issue #1396: change "when" to "if" in pattern guards
Author: nikomatsakis
Created: 2011-12-30 16:57:02+00:00
State: open

I suggest we replace the word "when" in pattern guards with the word "if". This is the only place that "when" appears in our grammar and so it would seem more consistent:

```
alt foo {
pat(a, b) if cond { ... }
pat(a, b) { ... }
}
```