logoalt Hacker News

Klonoaryesterday at 10:25 PM1 replyview on HN

If you understand the borrow checker, closures are just not that much on top of things.

In fact I can’t remember the last time I had to fight with them.


Replies

convolvatronyesterday at 11:24 PM

I really wanted just yesterday to create a dyn AsyncFnMut, which apparently still needs async-trait to build the stable. but I was pretty much unable to figure out how to make that work with a lambda. saying this is all trivial once you understand the borrow machinery is really understating it.

show 2 replies