list literal gotcha and suggestion
tim at peierls.net
Thu Oct 1 13:05:26 PDT 2009
That would make for an awfully exciting type system.
Paris in the
Quick, sentence or not?
On Thu, Oct 1, 2009 at 3:05 PM, Mark Thornton <mthornton at optrak.co.uk>wrote:
> There is another alternative: The value [1,2,3] should be both a List
> and a Set while [1, 2, 1] would be just a List. As the elements are
> compile time constants the compiler can easily check for duplicates. If
> any element appears more than once, then the result is just a List,
> otherwise it implements both List and Set.
More information about the coin-dev