[Haskell-cafe] Functional vs Imperative

John Meacham john at repetae.net
Thu Sep 15 19:52:57 EDT 2005


On Fri, Sep 16, 2005 at 12:44:02AM +0200, Sebastian Sylvan wrote:
> On 9/16/05, John Meacham <john at repetae.net> wrote:
> > On Thu, Sep 15, 2005 at 09:38:35PM +0400, Bulat Ziganshin wrote:
> > > Hello Dhaemon,
> > >
> > > Tuesday, September 13, 2005, 5:45:52 PM, you wrote:
> > >
> > > D> everywhere... Why use a function language if you use it as an imperative
> > > D> one?(i.e. most of the apps in http://haskell.org/practice.html)
> > >
> > > because most complex parts of code are really functional and Haskell
> > > give ability to express them shortly and reliably
> > 
> > Also, in many ways haskell is a 'better impertive language than
> > imperative ones'. the ability to treat IO actions as values and build up
> > computations functionally means your imperative code can end up being
> > much more concise, not to mention typesafe.
> >         John
> > 
> 
> What was that slogan? "Haskell - the finest imperative language in the world"?

yeah, something like that. it was in a paper, 'tackling the akward
squad' maybe?

I have wondered whether a book explicitly teaching haskell as an
advanced imperative language from the beginning, introducing advanced FP
and type system concepts slowly, would do well. somewhere in chapter 8 or
so it would say "ha! little do you know, but you have been actually
learning advanced functional programming for 3 chapters now!"

        John
-- 
John Meacham - ⑆repetae.net⑆john⑈ 


More information about the Haskell-Cafe mailing list