mozilla/rust — Issue #1529: Have some form of destructing if
Author: kevina
Created: 2012-01-15 04:48:43+00:00
State: open

Having to constantly write code like this:

```
alt optional_value {
some (value) { do something; }
_ {/*do nothing*/}
}
```

Is unnecessary verbose in my opinion and gets annoying to have to constantly write. I would like to be able to say something like:

```
if (let some(value) = optional_value) {
do something;
}
```

Although it doesn't have to be that exact syntax.