> Why did it compile if it's an incomplete type?  Shouldn't that be something 
> that you catch at compile time in a type-safe language?

Don't know.  It failed on my machine.   I copied/pasted your code to a
playground and got a red exclamation point due to a fault. Then I looked
closer at the code and saw the [Array] which was wrong.

If you don't want to trust type inference you can fully specify the type.

Array<Array<Color>>(...)        or
[Array<Color>](...)             or
[[Color]](...)

which are all different ways of coding the same thing.  I find Array(...)
less to type :)
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to