News for hackers. Stuff that matters.
Re:Writing Pythonic Rust by scoutt on Tuesday May 25, 2021 @03:55AM (#27274105)
Yes! That time I wanted to learn Rust every time I saw a complicated closure my mental parser/linter crashed (from a lifetime C developer PoV).

I don't understand how a function that is defined in-place is more clear than a nice function on its own. Perhaps because it gives a sense of continuity (like in async code), but man, it's really painful to read (at least to me). In fact, if I have to write some Rust right now, all my closures would be defined elsewhere, whenever possible.

There are no comments on this comment yet.