[Swift-devel] file declaration inside foreach

Ben Clifford benc at hawaga.org.uk
Wed Apr 25 09:25:03 CDT 2007



On Wed, 25 Apr 2007, Mihael Hategan wrote:

> >
> > that should be relatively straight-forward syntactic sugar, but I don't
> > particularly like introducing it as a special case for foreach - it should
> > be a synonym everywhere for [1:2:1] if introduced. But bleugh, [1:2] is
> > only one character more than 1..2
> 
> About that. Why are we using 1:2? It's not exactly intuitive.

I guess because that's how it got written down to begin with long ago.

We have far worse things to worry about, though ;-)

-- 




More information about the Swift-devel mailing list