[Haskell-cafe] Lazy Lists and IO
Stefan O'Rear
stefanor at cox.net
Wed Jul 11 17:14:31 EDT 2007
On Wed, Jul 11, 2007 at 09:54:10PM +0100, Andrew Coppin wrote:
> Chaddaï Fouché wrote:
>> There is already many thing in standard library. The balance is important.
>
> I agree.
>
> The question is whether we mind lots of people reimplementing this
> themselves, each using their own different name for it. I believe I read
> about some plan to add a trivial function named "on" to one of the standard
> libraries, because having it there makes code more readable. So the
> question becomes "does putting this thing in the library make people's code
> clearer, or is the function trivial enough to reimplement that one can
> readily see what it's for?"
>
> I'd prefer it in the library (probably Data.List), but it's no biggie.
Interestingly, the function is already there; it's called genericLength.
However, the lazy natural type isn't.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070711/8cb133b8/attachment.bin
More information about the Haskell-Cafe
mailing list