We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Associate version on a package basis
Define requirements for version variables
public requirement Invertible { for class Point { Point inverse(); } } public class Line ver 1 «V,W requires Invertible» { public Point#V# p1; public Point#W# p2; public Line(Point#V# p1, Point#W# p2) { this.p1 = p1; this.p2 = p2; } public «Y» Line«V,Y» rotate() { return new Line«V,Y»(p1, p2.«Y»inverse()); } }
With requirements, checking can be done easily without having to infer constraints. Also, it can make it easier to understand.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Associate version on a package basis
Define requirements for version variables
With requirements, checking can be done easily without having to infer constraints. Also, it can make it easier to understand.
The text was updated successfully, but these errors were encountered: