[Haskell-cafe] modelling C in Haskell ..
Galchin, Vasili
vigalchin at gmail.com
Sun Jun 1 04:00:27 EDT 2008
my knowledge of point-free is from category theory. in what sense is Haskell
point-free handle namespace pollution?
Kind regards, Vasili
On Fri, May 30, 2008 at 3:23 AM, Jonathan Cast <jonathanccast at fastmail.fm>
wrote:
> On 30 May 2008, at 12:29 AM, Galchin, Vasili wrote:
>
> compactness in writing and also namespace pollution .. ;^)
>>
>
> I know what the advantages of C's notation are. But getting the best
> notation out of Haskell generally doesn't happen by trying to make your code
> look like C.
>
> So the general answer to questions of the form `C can do x; can Haskell' is
> `No'. Don't do it like in C. It won't be idiomatic, it won't be elegant,
> and neither of us will like the results. Understand the features of Haskell
> that make your program compact, point-free (how Haskell handles namespace
> pollution), and elegant and use those. This will require a different
> factoring of your program vs. C. Sorry, but that's life.
>
> jcc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080601/72642831/attachment.htm
More information about the Haskell-Cafe
mailing list