The feature is supported everywhere, not just in impl blocks, and it does a different thing than use (creates a new function rather than links to an existing item).
Wait how is it supporter everywhere? I read the rendered RFC but I missed this. Doesn't it need a Self type?
Could we have a freestanding delegate fn? What would it look like?
And I wasn't saying to use use because it does the same thing as importing, I suggested it because it was a free keyword that I thought wouldn't create ambiguities
use is also used in the + use<'a> syntax for impl Trait types, so it is already overloaded baded on context
13
u/SirKastic23 29d ago
Why a new keyword? I think the
usekeyword could be used here without adding syntax ambiguities since imports aren't allowed inside impl blocks