Olaf Chitil wrote:
> 
> > 1) Allowing operational parameters to be used.
> 
> Sorry, I don't know what you mean by `operational parameters'. 

Sorry typo.  That should be optional.
> 
> > 2) Allow record names to be reused.  Most langauges have a special
> > syntak for record names but haskell does not.  Record names are just
> > treated as selector functions.
> 
> Yes, that's very useful. And the TREX extension (extensible records) of Hugs
> permits you to do that and much more.

I never looked into TREX but perhaps I will.
> 
> > 3) Allow really really clean systax for functions with compicated
> > parameters.  Try doing this within current haskell.
> >
> >   array (range 1 to 10) ...
> >   array (range 1 to 10 skip 2) ...
> >   array (range 1 to 100 factor 2) ...
> 
> Reuse the existing list functions:
> 
>         array [1..10]
>         array [1,3..10]
>         array (takeWhile (<=100) (iterate (*2) 1))

You misunderstood me.

It should be.

array (range 1 to 10) [(1,1), (1,2) ....]
array (range 1 to 10 skip 2) [(1,1), (3,2) ...]
array (range 1 to 100 factor 2] [(1,1), (2,2), (4,3), (8,4) ...]

Perhapes range is not a good word to use.  Maybe indices instead.

-- 
Kevin Atkinson
[EMAIL PROTECTED]
http://metalab.unc.edu/kevina/


Reply via email to