[Haskell-cafe] Re: Adding an ignore function to Control.Monad
Magnus Therning
magnus at therning.org
Sun Jul 12 04:12:01 EDT 2009
Stephan Friedrichs wrote:
> Johan Tibell wrote:
>> [...]
>>
>> I also think void is clearer than ignore.
>
> So do I. Another point is, that it's familiar from other languages; a
> function "void f(...)" doesn't return anything but may have an effect on the
> environment.
That depends on what languages you are familiar with, of course. To me void
is a type (C/C++) while ignore is a function (OCaml) ;-)
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090712/06173080/signature.bin
More information about the Haskell-Cafe
mailing list