[Swift-devel] Re: Few easy questions

Mihael Hategan hategan at mcs.anl.gov
Mon Jun 9 09:04:35 CDT 2008


On Mon, 2008-06-09 at 11:35 +0200, Milena Nikolic wrote:
> Ok, so I've done:
> - equality (== and !=) type check for two operands of numeric, string
> and boolean types
> - ordering (<, >, <=, >=) type check for two operands of numeric and
> string types
> 
> I am not sure what is ordering on array of orderables, if you give me
> some example I might type check that too.

Presumably a[] < b[] if there is a k for which a[k] < b[k] and a[i] ==
b[i] for all 0 <= i < k.

But I think it's exaggerated to have it.

Mihael





More information about the Swift-devel mailing list