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

2009-08-14 Thread Henning Thielemann
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 env

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

2009-07-12 Thread Bulat Ziganshin
Hello Magnus, Sunday, July 12, 2009, 12:12:01 PM, you wrote: > 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) ;-) you can write "(void)" :) -- Best regards, Bulatmailto:bulat.ziga

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

2009-07-12 Thread Magnus Therning
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 ar

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

2009-07-11 Thread Malcolm Wallace
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. +1. Regards, Malcolm __

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

2009-07-11 Thread Stephan Friedrichs
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. Stephan -- Früher hieß es ja: Ich denke, also bin ich. Heut

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

2009-07-11 Thread Dan Doel
On Saturday 11 July 2009 3:35:27 am Jeff Wheeler wrote: > On Fri, Jul 10, 2009 at 10:10 PM, Don Stewart wrote: > >> ## Control.Monad.void m a -> m () > >> Don Stewart > >> Iavor Diatchki > > For whatever it's worth, I prefer void as well, for the exact reason > Don said. Indeed, 'ignore' indicates

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

2009-07-11 Thread Johan Tibell
On Sat, Jul 11, 2009 at 9:35 AM, Jeff Wheeler wrote: > On Fri, Jul 10, 2009 at 10:10 PM, Don Stewart wrote: > > >> ## Control.Monad.void m a -> m () > >> Don Stewart > >> Iavor Diatchki > > For whatever it's worth, I prefer void as well, for the exact reason > Don said. Indeed, 'ignore' indicates

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

2009-07-11 Thread Jeff Wheeler
On Fri, Jul 10, 2009 at 10:10 PM, Don Stewart wrote: >> ## Control.Monad.void m a -> m () >> Don Stewart >> Iavor Diatchki For whatever it's worth, I prefer void as well, for the exact reason Don said. Indeed, 'ignore' indicates to me that the argument won't even be evaluated: it'll be ignored, a