[Haskell-cafe] Re: Adding an ignore function to Control.Monad

Henning Thielemann lemming at henning-thielemann.de
Fri Aug 14 13:43:54 EDT 2009


On Sun, 12 Jul 2009, Magnus Therning wrote:

> 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) ;-)

In the Modula-II derivative Cluster it is named FORGET, in Modula-3 it is 
named EVAL.

http://www.henning-thielemann.de/Cluster/Handbuch.pdf

http://www.cs.tut.fi/lintula/manual/modula3/m3defn/html/eval.html


More information about the Haskell-Cafe mailing list