[Swift-devel] Join function?

Ben Clifford benc at hawaga.org.uk
Tue Apr 3 18:44:13 CDT 2012


On Apr 4, 2012, at 8:26 AM, Mihael Hategan wrote:

> On Tue, 2012-04-03 at 17:17 -0500, Jonathan Monette wrote:
>> However, swift r4756 has the new code which uses the size of a map.  The svn log does not say why.
> 
> I think the reason for it was that previously @length(some_non_array)
> would give a weird error, whereas the current code complains more nicely
> that length must be applied to an array.

That should be checkable at compile time, though? (at least in theory - there was something fuzzy about @functions and types maybe to do with variable argument lists)

-- 




More information about the Swift-devel mailing list