Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.haskell > #168

Re: So I want to be a haskell wizard

From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.haskell
Subject Re: So I want to be a haskell wizard
References <sa6sjisdwpx.fsf@gmail.com>
Date 2012-02-03 16:09 -0800
Message-ID <7xsjir5ui1.fsf@ruckus.brouhaha.com> (permalink)
Organization Nightsong/Fort GNOX

Show all headers | View raw


Turtle Wizard <0wl256NOSPAM@gmail.com> writes:
> I was wondering how one could write this scheme program in
> a good haskell sense:

Haskell is not Scheme and it doesn't cleanly support every possible
Scheme programming style.  In particular, straightforward mappings of
your dispatch vector to Haskell won't work, because the functions don't
have similar type signatures.  If you had to, you could write all the
functions as IO or ST actions, represent cons nodes as IORef or STRef
containers, etc.  Could you instead say how you'd actually want to use
that function?  Otherwise your question sounds sort of like a C
programmer asking how to turn off the Scheme garbage collector.

You might look for the article "write yourself a Scheme in 48 hours".

Back to comp.lang.haskell | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

So I want to be a haskell wizard Turtle Wizard <0wl256NOSPAM@gmail.com> - 2012-02-03 19:42 +0900
  Re: So I want to be a haskell wizard Paul Rubin <no.email@nospam.invalid> - 2012-02-03 16:09 -0800

csiph-web