logoalt Hacker News

steveklabniklast Tuesday at 7:36 PM1 replyview on HN

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.


Replies

dlisboalast Tuesday at 7:59 PM

I 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.

show 2 replies