shiika
shiika copied to clipboard
Add class Range?
At first I was planning to implement Range
class as built-in but I found it less useful in Shiika because its type system does not support method overloading. That is, you cannot writeary[1..2]
.
(Another problem is that ..
has different meaning in Rust and in Ruby. If I would implement ranges, I'll take ..=
for inclusive and ..<
for exclusive)