[Swift-devel] file declaration inside foreach
Mihael Hategan
hategan at mcs.anl.gov
Wed Apr 25 09:22:58 CDT 2007
On Wed, 25 Apr 2007, Ben Clifford wrote:
>
>
> On Tue, 24 Apr 2007, Mihael Hategan wrote:
>
> > I would though like to see for i in 1..2 working though.
>
> 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.
>
> --
>
>
More information about the Swift-devel
mailing list