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

Use a less aggresive tag address #11

Open
pjrt opened this issue Feb 11, 2018 · 0 comments
Open

Use a less aggresive tag address #11

pjrt opened this issue Feb 11, 2018 · 0 comments
Labels
vim tags Related to the construction of vim tag files

Comments

@pjrt
Copy link
Owner

pjrt commented Feb 11, 2018

Currently, a tag address for:

def foo[A, B, C](a: A, b: B, c: C): Baz

Would create the tag address:

def \zsfoo[A, B, C](a: A, b: B, c: C): Baz

However, this means that if the user changes anything (even a: A -> aa: A) it would cause the address to become invalid. I feel this is too aggressive. Having such a strict tag allows for better precision (disambiguate between a foo with two params vs one with three) but more often than not, people don't have that many overloaded functions (or at least they shouldn't).

This "issue" also extends to case classes and others.

A possible solution is to use everything BUT the params. So the example above would return an address as:

def \zsfoo
@pjrt pjrt added the vim tags Related to the construction of vim tag files label Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vim tags Related to the construction of vim tag files
Projects
None yet
Development

No branches or pull requests

1 participant