2 ms·
Rust used to have capture clauses, but they were removed in order to reduce the complexity of the language. It might make sense to add them back later, but give
by pcwalton 8y ago
Rust used to have capture clauses, but they were removed in order to reduce the complexity of the language. It might make sense to add them back later, but given that Rust is still constantly criticized for being too complex I think it's probably still not yet time.
- masklinn 8y agoThat makes sense to me, I subscribe to the view that software "design patterns" are userland patches for things missing from the language or misuses thereof. The question is then whether the feature is missing enough (the pattern is common) that it makes sense to feed it back into built-in support or not. I don't know how common the knowledge of nikomatsakis's pattern is though, and thus if crates could be automatically searched for it.