2006/7/14, David House <[EMAIL PROTECTED]>:
On 14/07/06, Johan Holmquist <[EMAIL PROTECTED]> wrote:
> > You mean  [Monday, Tuesday ... Sunday, Monday] ?
>
> Actually not. No repetitions.

That seems like a very bad idea. '..' normally means 'inclusive',
breaking those semantics would be a very weird thing to do, and breaks
the principle of least surprise.

Good point. When I think about it [Monday .. Monday] should probably
not return the same as [Tuesday .. Monday].

(Ofcourse a new class would not permit the use of the [X .. Y]
notation if not added to the language somehow.)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to