Replies: 4 comments 8 replies
-
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I mean its true |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions