Timothee Cour:

Why not support Tuple indexing and slicing with [] syntax?

You need a syntax like:
a.slice!(1, 3);

I don't know why Walter didn't add support for a slicing syntax for tuples. But it's an additive change, so it's not too much late to add it, if it's feasible.

If D will grow built-in tuples (that currently is among my top enhancement requests for D), probably the slice syntax will be supported.

Bye,
bearophile

Reply via email to