osdir.com
mailing list archive

Subject: Re: Re: humor - msg#00208

List: lang.haskell.cafe

Date: Prev Next Index Thread: Prev Next Index
Sean Perry <sean.perry@xxxxxxxxxxxx> wrote:
> Gabriel Ebner wrote:
> > enrico.santoemma@xxxxxx writes:
> >
> >
> >>Well... more seriously, does someone have got links to applications with
> >>visible source?
> >
> >
> > The only one I know is darcs: http://abridgegame.org/darcs
> >
>
> which is actually quite readable, even for a newbie. He does like the
> '$' operator a bit much for my tastes though.

Obviously you haven't realized the great beauty of $. You cannot like $
to much. foldr should be defined as follows:

foldr f z [] = id $ z
foldr f z (x:xn) = (f $ x) $ foldr f z xn

etc. :)

Jon Cast


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: humor

enrico.santoemma@xxxxxx wrote: > When I met Java some time ago, I said to myself: "Java is a great language > to write IDEs for the Java language". > > Now that I'm looking for Haskell source code (perhpas that there is another > way to learn a language than to spy on others?), I'm tempted to say: "Haskell > is a great language to write libraries for the Haskell language" > > Well... more seriously, does someone have got links to applications with > visible source? Define `application'... Many of the tools (not just libraries) for Haskell are written in Haskell: haskell.org/ghc haskell.org/happy sourceforge.net/projects/syntran (plug!) See also haskell.org/practice.html. Note that, of course, most applications written in Haskell are written to solve problems Haskellers are interested in, and most of us aren't interested in GUIs. More generally: Haskell is a great language for writing compilers for any language, not just Haskell; we haven't seen a C compiler, say, written in Haskell primarily because gcc has that market cornered. I would expect that the first major `real world' application of Haskell will be an interpreter for some kind of DSL or scripting language (I hope not, because that means I won't have written it, but I expect so). Jon Cast

Next Message by Date: click to view message preview

Re: Re: humor

Jon Cast wrote: Obviously you haven't realized the great beauty of $. You cannot like $ to much. foldr should be defined as follows: foldr f z [] = id $ z foldr f z (x:xn) = (f $ x) $ foldr f z xn etc. :) Am I to assume there is some sarcasm here? Hope so (-: (Sorry, still new to the list, learning the idioms and mannerisms)

Previous Message by Thread: click to view message preview

Re: Re: humor

Gabriel Ebner wrote: enrico.santoemma@xxxxxx writes: Well... more seriously, does someone have got links to applications with visible source? The only one I know is darcs: http://abridgegame.org/darcs which is actually quite readable, even for a newbie. He does like the '$' operator a bit much for my tastes though.

Next Message by Thread: click to view message preview

Re: Re: humor

Jon Cast wrote: Obviously you haven't realized the great beauty of $. You cannot like $ to much. foldr should be defined as follows: foldr f z [] = id $ z foldr f z (x:xn) = (f $ x) $ foldr f z xn etc. :) Am I to assume there is some sarcasm here? Hope so (-: (Sorry, still new to the list, learning the idioms and mannerisms)
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by