4 ms·
I'm somewhat wishing for a `.bind!()` macro or something similar, which will desugar `let y = x.method().bind!().reference_and_do_something()` into `let tmp = x
by mqus 6y ago
I'm somewhat wishing for a `.bind!()` macro or something similar, which will desugar
`let y = x.method().bind!().reference_and_do_something()` into `let tmp = x.method(); let y = tmp.reference_and_do_something()` . This should be available for chaining for convenience.
But I see the issues (e.g. which scope should `tmp` be bound to/what is its lifetime?)