Skip to content

Commit 021681c

Browse files
committed
Added discussion on complexity.
1 parent 1303392 commit 021681c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/0000-import-trait-associated-functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ This recommendation makes the most sense when there is a possibility of ambiguit
184184

185185
Because of this context sensitivity, we should allow developers to choose when removing the extra context makes sense for their codebase.
186186

187+
Another drawback mentioned during review for this RFC was that this adds more complication to the name resolution rules. On an implementation side, I am assured that this feature is straightforward to implement. From a user perspective, the name lookup rules for the function name are exactly the same as those used to look up any other function name. The lookup rules used to resolve the `impl` are also exactly the same ones used for non-fully qualified trait function calls. There is no fundamentally new kind of lookup happening here, just a remixing of existing lookup rules.
188+
187189
# Rationale and alternatives
188190
[rationale-and-alternatives]: #rationale-and-alternatives
189191

0 commit comments

Comments
 (0)