[Haskell-cafe] Records

Ketil Malde ketil.malde at bccs.uib.no
Fri Nov 18 07:06:52 EST 2005

Fraser Wilson <blancolioni at gmail.com> writes:

>                Isn't there a potential for confusion with function
>      composition (f . g)?

> Perhaps, but I always have spaces on either side when it's function
> composition.

Good for you.  Syntax that changes depending on spacing is my number
one gripe with the Haskell syntax.  And too many infix operators and
symbolic elements are on the list as well.

How about a pair of (magical, if necessary) functions called set and
get?  Letting you do something like

      x `set` first 4 `set` second "foo"

If I haven't seen further, it is by standing in the footprints of giants

More information about the Haskell-Cafe mailing list