News for hackers. Stuff that matters.
Re:Comparative unsafety by mqus on Friday April 09, 2021 @11:12AM (#26751527)
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?)

There are no comments on this comment yet.