-
Notifications
You must be signed in to change notification settings - Fork 65
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
Bounds / Limits Literal #80
Comments
comments: questions: |
An alternative is to use the range clause syntax eg `0 To 10' (restricting both bounds to inclusive) If x Is 1 To 10 Then Return "Valid" Else Return "Invalid" |
Maybe instead we can invent a
Anything that is fair game in the
Multiple conditions may be applicable:
(Above succeeds if between 1 and 3, or is equal to 99. As in, Perhaps two forms of
Or instead, leave
|
@rskar-git See newer proposal #160 |
@AdamSpeight2008 Thanks! (for proposal #160) |
Bound / Limits Literals
These allow the user to express a couple of values that are to be treated as a bounds or limits.
They can also express the (in/ex) clusivity of the each of those bounds or limits
Examples
x = bounds
equates to is x within the bounds?x <> bounds
equates to is x not within the bounds?IEnumerable(Of T)
IReadOnlyCollection(Of T)
Grammar [WIP]
The text was updated successfully, but these errors were encountered: