It would be beneficial to make closed interval syntax widely available in the language #373
Closed
elisbyberi
started this conversation in
Polls
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I noticed this powerful syntax that checks if a value
xis in a closed intervala ... b, it is the same asa <= x <= b.Using Ellipsis makes the code very expressive and less error-prone.
In my opinion, Codon's status as a Python superset means that backward compatibility with Python is not a priority for the language. Codon already extends Python syntax.
Proposed usage would be:
Current usages:
1 vote ·
All reactions