processor / E

Core library for dscript (parser, expressions, etc)
1 stars 1 forks source link

RangeExpression #9

Open iamcarbon opened 7 years ago

iamcarbon commented 7 years ago

Rust & Swift both use "half open range" syntax for ranges -- while F# seems to use the entire range. Leaning toward the later. Let's see what C# does.

0..10    Rust  (half range)
0..<20 Swift  (half range)

for i in 0..5 {
  write(i)
}
-> 012345