Re: [Haskell-cafe] Renaming constructors for readability

2007-11-14 Thread Jules Bean
Henning Thielemann wrote: On Tue, 13 Nov 2007, Dougal Stanton wrote: On 13/11/2007, Henning Thielemann [EMAIL PROTECTED] wrote: On Tue, 13 Nov 2007, Dougal Stanton wrote: -- int a = 3; -- int *pa = a; ampersand :: t - Pointer t ampersand a = Just a What's bad about using 'ampersand'

Re: [Haskell-cafe] Renaming constructors for readability

2007-11-14 Thread Henning Thielemann
On Wed, 14 Nov 2007, Jules Bean wrote: Henning Thielemann wrote: No problem, write a function like 'maybe' to inspect the data. Instead of 'f m' with f :: Maybe T - S f (Just x) = g x f Nothing = h Yes. It is a problem. Do you write all your code using higher-order functions,

Re: [Haskell-cafe] Renaming constructors for readability

2007-11-13 Thread Henning Thielemann
On Tue, 13 Nov 2007, Dougal Stanton wrote: -- int a = 3; -- int *pa = a; ampersand :: t - Pointer t ampersand a = Just a What's bad about using 'ampersand' function as replacement for the constructor 'Just'? ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Renaming constructors for readability

2007-11-13 Thread Dougal Stanton
On 13/11/2007, Henning Thielemann [EMAIL PROTECTED] wrote: On Tue, 13 Nov 2007, Dougal Stanton wrote: -- int a = 3; -- int *pa = a; ampersand :: t - Pointer t ampersand a = Just a What's bad about using 'ampersand' function as replacement for the constructor 'Just'? I also wanted

Re: [Haskell-cafe] Renaming constructors for readability

2007-11-13 Thread David Roundy
On Tue, Nov 13, 2007 at 11:44:30PM +0100, Henning Thielemann wrote: On Tue, 13 Nov 2007, Dougal Stanton wrote: -- int a = 3; -- int *pa = a; ampersand :: t - Pointer t ampersand a = Just a What's bad about using 'ampersand' function as replacement for the constructor 'Just'? It

Re: [Haskell-cafe] Renaming constructors for readability

2007-11-13 Thread Henning Thielemann
On Tue, 13 Nov 2007, Dougal Stanton wrote: On 13/11/2007, Henning Thielemann [EMAIL PROTECTED] wrote: On Tue, 13 Nov 2007, Dougal Stanton wrote: -- int a = 3; -- int *pa = a; ampersand :: t - Pointer t ampersand a = Just a What's bad about using 'ampersand' function as