do-notation
do-notation copied to clipboard
support mut in bindings
trafficstars
I may be missing it but it seems like you can't current do something like:
mut state <- ...;
As it results in an error like:
32 | mut state <- ...;
| ^^^^^ no rules expected this token in macro call
|
I guess the workaround is fairly trivial though, just an extra line of code:
state <- ...;
let mut state = state;
Yeah, a PR to fix that should be fairly simple, I think. :)
Thanks, sounds good - I will take a look when I get some time.