[Swift-devel] foreach iteration parameter type
Michael Wilde
wilde at mcs.anl.gov
Tue Sep 11 14:55:15 CDT 2007
This sounds god to me, Ben.
Ben Clifford wrote:
> the foreach syntax admits a type declaration for the iteration parameter.
>
> the iteration parameter must necessarily always be of the type of the
> members of the supplied array to iterate over.
>
> the iteration parameter type has never been checked in actual
> implementation.
>
> I'd like to replace the broken code path with a compile error indicating
> that specifying a type is no longer supported; and in a while remove that
> entirely from the syntax.
>
More information about the Swift-devel
mailing list