shiika icon indicating copy to clipboard operation
shiika copied to clipboard

Add class Range?

Open yhara opened this issue 2 years ago • 0 comments

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)

yhara avatar Dec 15 '22 13:12 yhara