Lifetimes in Rust are difficult to learn how to use them properly, and I guess many people lose interest in the language because of that. I wonder if it has ever been considered adopting a syntax that allows representing this:
This is not a full proposal, I'd just like to know if something similar has already been discussed. If not, do you guys think this might be worth trying?
Exactly my point. In the bar function, I only need to reference one lifetime for each parameter. But because Foo itself has three generic lifetime parameters, I'm forced to reference all of them in both s and t. The ones with the '_ placeholder are irrelevant to this context, but they have to be there anyway.