3:53 AM
Oh hey @quartata, what do you think of using dot notation for indexing? I.e., ['a' 'b' 'c'].2 => 'c'
.
The main reason I'm considering this is that using Python-style indexing means that something like [[0] [0]]
is ambiguous as to whether it's a list of two lists that each have one element, zero, or it's a list with a single element that is zero.
That said, it does also seem attractive for other reasons. I can use ['a' 'b' 'c'].[0,2]
to get ['a' 'c']
, and similarly with range syntax.