Alexis Manin
10/07/2022, 8:13 AM..<
operator. Will other mathematical range operators considered in the future ? Like open started (<..
?) Ranges, or fully open ranges (<..<
?) ? I think both are not very common, but maybe it would make sense to be exhaustive in this matter ? Maybe some mathematical libraries would have use for it ?Alexis Manin
10/07/2022, 8:17 AMAlexis Manin
10/07/2022, 8:23 AMstantronic
10/08/2022, 4:04 PM>..
instead of <..
?Alexis Manin
10/08/2022, 4:17 PMephemient
10/10/2022, 1:09 PMAlexis Manin
10/10/2022, 2:01 PMephemient
10/10/2022, 2:53 PMephemient
10/10/2022, 2:56 PMif (i in 1..3) // ok
for (i in 1..3) // ok
if (s in "a".."z") // ok
for (s in "a".."z") // not ok
..<
makes no difference, and neither should a hypothetical <..
or <..<
Alexis Manin
10/10/2022, 3:43 PM1.0..<2.0 step 0.1
. However, for open started ranges, this is a different matter, because the step represent the amount between two included values, not an initial offset. So, open-started ranges add even more subtlety.ephemient
10/10/2022, 4:45 PM(1.0..2.0 step 0.1) - 1.0
)