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
This would be a feature that mirrors a mathematical expression that defines an allowed range of values.
This for brevity and to better express a range of valid (or invalid) values in a mathematical context.
Instead of pairing two boolean expressions, declare the expression in a simpler, more concise syntax.
Instead of... if (foo > 10 && foo <= 100) { } Do this... if (10 < foo <= 100) { }
Instead of... if (bar < 23 || bar > 456) { } Do this... if (23 > bar > 456) { }
The syntax might be confusing to those without a mathematical background.
NA
The text was updated successfully, but these errors were encountered:
Duplicate of #4108.
Sorry, something went wrong.
No branches or pull requests
FEATURE_NAME
Summary
This would be a feature that mirrors a mathematical expression that defines an allowed range of values.
Motivation
This for brevity and to better express a range of valid (or invalid) values in a mathematical context.
Detailed design
Instead of pairing two boolean expressions, declare the expression in a simpler, more concise syntax.
Instead of...
if (foo > 10 && foo <= 100) { }
Do this...
if (10 < foo <= 100) { }
Instead of...
if (bar < 23 || bar > 456) { }
Do this...
if (23 > bar > 456) { }
Drawbacks
The syntax might be confusing to those without a mathematical background.
Alternatives
NA
Unresolved questions
NA
Design meetings
NA
The text was updated successfully, but these errors were encountered: