Re: Top Level TWI's again was Re: [Haskell] Re: Parameterized Show

2004-11-22 Thread Axel Simon
On Mon, 2004-11-22 at 23:34, John Velman wrote: > In a nutshell: > >I want to use the old value of a tag to compute the new value, in a >callback, > >I want to access the tag from other callbacks, and > >I want to the value to a mutable list from within the callback. >

Re: Top Level TWI's again was Re: [Haskell] Re: Parameterized Show

2004-11-22 Thread John Velman
On Mon, Nov 22, 2004 at 07:27:44PM +0100, Lennart Augustsson wrote: > [snip] > I admit there are proper uses of global variables, but they are very > rare. You have not convinced me you have one. > > -- Lennart It's with some trepidation I bring a problem as a total newbie, but I've been

Re: Top Level TWI's again was Re: [Haskell] Re: Parameterized Show

2004-11-22 Thread Lennart Augustsson
Adrian Hey wrote: But toplevel things with identity (TWI) are evil as well, *especially* if they are easy to use. Just repeating this again and again doesn't make it any more true. Neither you or any of the other nay-sayers have provided any evidence or credible justification for this assertion, n

Re: Top Level TWI's again was Re: [Haskell] Re: Parameterized Show

2004-11-22 Thread Benjamin Franksen
On Monday 22 November 2004 09:38, Adrian Hey wrote: > On Friday 19 Nov 2004 2:27 pm, Benjamin Franksen wrote: > > But toplevel > > things with identity (TWI) are evil as well, *especially* if they are > > easy to use. > > Just repeating this again and again doesn't make it any more true. Neither >

Re: Top Level TWI's again was Re: [Haskell] Re: Parameterized Show

2004-11-22 Thread Keean Schupke
Adrian Hey wrote: Just repeating this again and again doesn't make it any more true. Ditto... I for one think the best solution is to use the language as intended and pass the values as function arguments. As pointed out on this list - the only possible situation where you cannot do this is when in

Top Level TWI's again was Re: [Haskell] Re: Parameterized Show

2004-11-22 Thread Adrian Hey
On Friday 19 Nov 2004 2:27 pm, Benjamin Franksen wrote: > Implicit parameters are evil, agreed. Their deficiencies should be added > as a warning to the docs (with many exclamation marks). Well I dunno. Maybe whatever's currently wrong with them can be fixed up. But I can't say they're something