- Background: Closures (recurring and otherwise)
- Background: DST
- The Problem: DST and Closures
- So where are we?
I have recently been trying to keep myself abreast of a flurry of discussion about reforming the design of Rust closures. Niko has a series of blog posts (1, 2, 3, 4, 5, 6, 7, 8); the content of some of those posts were further discussed at Rust team meetings (11, 12, 13, 14, 15, 16), and there have been some more formalized proposals with their own set of discussions: (9, 10).
Some of the links above are more about “Dynamically Sized Types” (DST), a related topic, as we shall see.
This post is my attempt to condense all of this information down into something where I can see all the pieces at once, and discard the red herrings along the way.