From: Jean-Marc Alliot <jean-marc.alliot@irit.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] functional or imperative feature ?
Date: Mon, 22 Jul 2013 13:20:08 +0200 [thread overview]
Message-ID: <51ED1568.3060609@irit.fr> (raw)
In-Reply-To: <sympa.1374439723.23701.176@inria.fr>
Le 21/07/2013 22:50, habet_ms@yahoo.fr a écrit :
> Hi,
> are sequencing (;) and block structure (begin ... end) functional features
> or imperative ones ?
>
> Thanks,
>
> M.S
>
Interesting question, which I sometimes get from my students.
I am not giving really an answer (I saw one from David Allsopp), but
instead an advice;
Ocaml is not the best language to learn "pure" functional programming.
If you really want to give it a try, then try Haskell, and if you really
want to be "extra-pure", don't use at all Haskell syntactic sugar. You
will find all the answers by yourself, maybe the hard way :-)
PS: That's not a Haskell vs Ocaml troll. I love both languages, and I am
using ocaml much more than Haskell for everyday programming (I consider
Ocaml easier to use and even easier to read, but that's strictly IMHO,
and maybe just because I am more familiar with it).
It's just that, for learning pure functional programming, with lazy
evaluation, Haskell is really good.
next prev parent reply other threads:[~2013-07-22 11:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-21 20:50 habet_ms
2013-07-21 20:57 ` [Caml-list] " Christopher Zimmermann
2013-07-22 11:42 ` oliver
2013-07-22 11:46 ` David Allsopp
2013-07-22 14:23 ` oliver
2013-07-22 11:51 ` Wojciech Meyer
2013-07-21 20:58 ` [Caml-list] " David Allsopp
2013-07-22 11:20 ` Jean-Marc Alliot [this message]
2013-07-22 12:05 ` r.3
2013-07-22 14:59 ` Kristopher Micinski
2013-07-23 0:16 ` oleg
2013-07-23 2:15 ` Kristopher Micinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51ED1568.3060609@irit.fr \
--to=jean-marc.alliot@irit.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox