-
-
Notifications
You must be signed in to change notification settings - Fork 16
think whether B.C should match A.B.C #12
Comments
See #12 for why the second one is not a match.
I think this is correct. I've never needed B.C to match A.B.C when writing Field names and method names are qualitatively different from expressions, and I don't think it's useful to maintain that distinction. |
Ah, good point. Idea shut down. |
I hear the point about sometimes not wanting I wanted to match all
Which works almost everywhere, except in the Perhaps another way to go around this would be to match |
Yeah, that's an interesting point. It applies to type aliases too. For example we might do:
but that won't find places that it's mentioned via a type alias (which we probably want). e.g. (straw man)
|
Right now it doesn't.
A.B
does match the beginning ofA.B.C
. This is because of the nature of how these trees of selectors are built -(A.B).C
. It should be noted, however, that$x.C
does match the entireA.B.C
because of this.Is there a use case for this? Haven't found a real one. Found this quirk while playing.
/cc @rogpeppe
The text was updated successfully, but these errors were encountered: