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

Remove PolySameLen #196

Open
panacekcz opened this issue Nov 28, 2017 · 0 comments
Open

Remove PolySameLen #196

panacekcz opened this issue Nov 28, 2017 · 0 comments

Comments

@panacekcz
Copy link

panacekcz commented Nov 28, 2017

The @PolySameLen annotation is redundant and can be replaced by @SameLen annotations.
For example, a method

Object @PolySameLen[] m(Object @PolySameLen[] a){
 return a;
}

can be annotated

Object @SameLen("#1")[] m(Object[] a){
 return a;
}

The latter expresses the same property as the former, and seems to work better.

The annotation @PolyLength can be replaced by @PolyValue @SameLen.
For example, @PolyLength String intern(@PolyLength String this) can be changed to @PolyValue @SameLen("this") String intern(@PolyValue String this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant