Re: Which language to learn?
- From: Marcin 'Qrczak' Kowalczyk <qrczak@xxxxxxxxxx>
- Date: Fri, 30 Jun 2006 00:07:19 +0200
Jon Harrop <usenet@xxxxxxxxxxxxxx> writes:
I have seen Haskell and Oz. Both are new but I don't know what to
choose.
I know very little about Oz and can't comment about it, but Haskell
is an excellent choice for learning for broadening horizons. It's quite
different from mainstream languages, well designed and elegant, and
at the same time practical, and with good quality of implementations.
These aspects rarely coincide.
OCaml:
OCaml might be easier to learn than Haskell (it doesn't try to
distinguish pure functions from operations with side effects),
but other aspects are worse IMHO (because of this, because of
being explicit about when the body of a function is evaluated,
it doesn't make you feel what functional programming is about).
String handling is quite imperative (strings are mutable, you
often end up computing the length in advance and then filling
contents).
OCaml has various ugly artifacts of the simplicity of the implementation
and design, e.g. silent overflow in integer arithmetic; poor choice of
equalities: the most fundamental one, the only one from SML, is absent;
hardwired implementation of comparisons wrt. value representation;
no type-generic arithmetic, 8-bit only texts. Most of them doesn't
mean anything wrt. functional programming, it's just ugly, even if
it's justified by simplified implementation and performance.
--
__("< Marcin Kowalczyk
\__/ qrczak@xxxxxxxxxx
^^ http://qrnik.knm.org.pl/~qrczak/
.
- References:
- Which language to learn?
- From: leonadavinci
- Re: Which language to learn?
- From: Jon Harrop
- Which language to learn?
- Prev by Date: Re: RAD vs. performance
- Next by Date: Re: RAD vs. performance
- Previous by thread: Re: Which language to learn?
- Next by thread: Re: Which language to learn?
- Index(es):
Relevant Pages
|