According to PDD19, the slicing syntax ("..") is deprecated.
This means that the following will be removed:
$P0 = foo[1 .. 3]
This will be replaced by the (now still experimental) slice op
(according to pdd19).
In IMCC, it's also possible to write:
$P0 = foo[1, 3]
According to IMCC.y, this is a sliced index (well I assumed that; some
variable "in_slice" is set to 1, so I guess it's a safe bet).
Should this syntax be removed as well? (I guess the syntax for the
slice op would be something like this:
"$P0 = slice foo, 1, 3" ?)
In any case, last time I checked (long time ago) the slicing syntax
didn't work for me anyway, so removing it won't involve that much code
I think.
As soon as the slice op works correctly, it would always be possible
to add some nice syntactic sugar in PIR.
So, to make the question clear: what about the comma in [ ] context?
In addition, will the ";" be allowed in all keyed access? So for
namespaces, one can specify ".namespace ["x";"y"]" # nested
Will this also be allowed for: $P0 = foo["x";"y"] ? (in other words,
is the ";" reserved for namespaces, or is it generally usable?)
kjs