"spir" <[email protected]> wrote in message
news:[email protected]...
>
> Side-question: what is actually 1..5 as of now for a thing? Or is it
> conceptually "unconstructed" by rewriting to (probably) an ordinary for
> loop? Anyway, the point above applies to language-side semantics, whatever
> optimisation may happen.
>
AIUI: Syntactically, it doesn't exist at all, at least not by itself. It's
just part of one of the foreach syntaxes:
'foreach' '(' {declaration list} ';' {expression} '..' {expression} ')'
and also part of one of the slice syntaxes:
(from the docs:)
PostfixExpression [ AssignExpression .. AssignExpression ]
Although it's possible I've understood it wrong.
Don't have a clue how it's handled beyond that though.