Replies: 4 comments 8 replies
|
|
0 replies
|
There is some work for ranges discussed in parameterized checks. We went back and forth on this repeatedly. It was hard 😃 The parameterized arrays and parameterized nums give good examples. |
1 reply
|
I mean its true |
0 replies
|
Ranges should be actual value types which can be used in checks but also as actual data, rather than special syntax for checks. And then they can be used in checks in the same way one can have a check like "value must be a member of this array". As such, the whole range thing is really orthogonal to Oshun. |
7 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.
Uh oh!
There was an error while loading. Please reload this page.
This is a very, very trivial thing, but I was reading the README.md and saw your Celsius and Fahrenheit examples. It was surprising to me that the Celsius range started at -273.14. Absolute zero is -273.15 °C, of course. Did you intentionally make the lower range -273.14 because absolute zero is not physically achievable? But -273.141 °C is achievable (although difficult, I'm sure).
https://en.wikipedia.org/wiki/Absolute_zero
Quasi-related, have you given any thought to supporting a syntax for open-ended interval numerical ranges like (a,b] or even ]a,b[?
https://en.wikipedia.org/wiki/Interval_(mathematics)#Including_or_excluding_endpoints
All reactions