It would be beneficial to make closed interval syntax widely available in the language #373
elisbyberi
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed this powerful syntax that checks if a value
x
is 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 ·
Beta Was this translation helpful? Give feedback.
All reactions