Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remapping | differentiate *:=... from /*:=... #174

Open
sloretz opened this issue May 1, 2018 · 0 comments
Open

Remapping | differentiate *:=... from /*:=... #174

sloretz opened this issue May 1, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@sloretz
Copy link
Contributor

sloretz commented May 1, 2018

The remapping design doc states that /namespace/ is only prefixed to the match side of a rule if it does not begin with *, **, or /. This means the rules *:=foo and /*:=foo are the same.

If code uses a relative name bar and is put into namespace /ns then the rule bar:=foo will match while *:=foo does not. However, if code uses a fully qualified name /bar then both /bar:=foo and /*:=foo match. I think this difference in behavior when there is a leading / could be confusing.

Proposal

Change the behavior to say /namespace/ is prefixed to the match side when a rule begins with *, **, or a token.

@sloretz sloretz added the enhancement New feature or request label May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant