[Swift-devel] foreach iteration parameter type
Ben Clifford
benc at hawaga.org.uk
Tue Sep 11 14:48:25 CDT 2007
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