3 ms·
All three have the same underlying idea: do this for every thing of that. In the first case, it's implement a trait for a type. In the second case, it's "for al
by steveklabnik 1y ago
All three have the same underlying idea: do this for every thing of that. In the first case, it's implement a trait for a type. In the second case, it's "for all choices of the lifetime" and for a for loop, it's do something for each element of a collection.
- dlisboa 1y agoI understand how that seems logical in isolation but it's just not how syntax is usually read by people. It's done so as part of a reading context instead of as separate syntatical tokens. The underlying idea is not the same for the reader because the context is vastly different.
- wtetzner 1y agoThis feels disingenuous. I have a hard time imagining a case where someone would find this confusing.
- steveklabnik 1y agoSure, and I think that's insightful: what you may consider a mess, I may consider orthogonal!