Update Examples
parent
9137e43f90
commit
5d4f791039
@ -1005,3 +1005,6 @@ let Foo
|
||||
= aFoo
|
||||
```
|
||||
as the spirit moves you.
|
||||
|
||||
#### if-let
|
||||
It seems the only new point relevant to Husht that arises here is the need to try to do auto-import for destructuring if-let (and maybe just destructuring lets as well), so that if Foo is a enum with variants Bar and Baz, and `a` is of type Foo, then you can write just `if let Bar = a ...` rather than `if let Foo::Bar = a ...`.
|
||||
|
Loading…
Reference in New Issue
Block a user