Verbose functional languages?
  Home FAQ Contact Sign in
comp.lang.functional only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.functional Profile…
 Up
Verbose functional languages?         


Author: Rüdiger Klaehn
Date: Dec 2, 2007 07:04

Hello everybody,

I got a question. Is there anything like a verbose functional language
that attempts to be easily readable?

What I am looking for would be something that looks kind of like
smalltalk, with an emphasis on easy to read code, but fully functional
with immutable data structures and a powerful type system.

I find that many people are confused by the very compact syntax of
existing functional languages such as haskell and ocaml and therefore
miss out on the big advantages of these languages such as referential
transparency.

regards,

Rüdiger
236 Comments
Re: Verbose functional languages?         


Author: michele.simionato
Date: Dec 2, 2007 07:09

On Dec 2, 4:04 pm, "Rüdiger Klaehn" lambda-computing.com> wrote:
> Hello everybody,
>
> I got a question. Is there anything like a verbose functional language
> that attempts to be easily readable?

As a beginner, I find SML easily readable.

Michele Simionato
no comments
Re: Verbose functional languages?         


Author: Pascal Costanza
Date: Dec 2, 2007 07:10

Rüdiger Klaehn wrote:
> Hello everybody,
>
> I got a question. Is there anything like a verbose functional language
> that attempts to be easily readable?
>
> What I am looking for would be something that looks kind of like
> smalltalk, with an emphasis on easy to read code, but fully functional
> with immutable data structures and a powerful type system.
>
> I find that many people are confused by the very compact syntax of
> existing functional languages such as haskell and ocaml and therefore
> miss out on the big advantages of these languages such as referential
> transparency.

In case you don't insist on purity and can live with dynamic typing, try
Scheme and Common Lisp, especially Common Lisp or ISLISP.

Pascal
Show full article (0.89Kb)
no comments
Re: Verbose functional languages?         


Author: Bruno Desthuilliers
Date: Dec 2, 2007 09:09

Pascal Costanza a écrit :
> Rüdiger Klaehn wrote:
>
>> Hello everybody,
>>
>> I got a question. Is there anything like a verbose functional language
>> that attempts to be easily readable?
>>
>> What I am looking for would be something that looks kind of like
>> smalltalk, with an emphasis on easy to read code, but fully functional
>> with immutable data structures and a powerful type system.
>>
>> I find that many people are confused by the very compact syntax of
>> existing functional languages such as haskell and ocaml and therefore
>> miss out on the big advantages of these languages such as referential
>> transparency.
>
>
> In case you don't insist on purity and can live with dynamic typing, try
> Scheme and Common Lisp, especially Common Lisp or ISLISP. ...
Show full article (0.89Kb)
no comments
Re: Verbose functional languages?         


Author: Rainer Joswig
Date: Dec 2, 2007 09:57

In article <4752e6f3$0$12394$426a74cc@news.free.fr>,
Bruno Desthuilliers wrote:
> Pascal Costanza a
no comments
Re: Verbose functional languages?         


Author: Joachim Durchholz
Date: Dec 2, 2007 10:53

Rüdiger Klaehn schrieb:
> But there are people that run away screaming when seeing it. And let's
> face it: you can write some very difficult to read code in SML that
> looks almost as bad as an obfuscated perl contest.

This is possible in any FPL, by using higher-order functions.

In most cases, that's because the code is getting more compact than what
people are used to.
> I know quite a few people (mostly engineers) that e.g. prefer visual
> basic to C# because of its verbose and "english-like" syntax. These
> people are quite intelligent, but nevertheless are quite irritated
> even by C-Style languages. So there is no chance at all to get these
> people to use something like SML. Which is a shame.

Erlang is somewhat verbose, but rather "non-English".

Dunno otherwise. Clean, maybe?

Regards,
Jo
no comments
Re: Verbose functional languages?         


Author: Ben Franksen
Date: Dec 2, 2007 13:36

Rüdiger Klaehn wrote:
> I find that many people are confused by the very compact syntax of
> existing functional languages such as haskell and ocaml and therefore
> miss out on the big advantages of these languages such as referential
> transparency.

Are they? I always find it difficult to convince people of the practical
utility of referential transparency. OTOH, few people who see an elegant
compact Haskell expression deny that it is a great advantage to express
things so concisely (that is, after they get it explained and understand
what it means). I wonder how a more verbose syntax could improve on the
readability of e.g.

map (+1)

for a function which increments all elements in a list.

Anyway if you are looking for something with a Java-like syntax, take a look
at Scala.

Cheers
Ben
no comments
Re: Verbose functional languages?         


Author: Robert A Duff
Date: Dec 2, 2007 13:38

"Rüdiger Klaehn" lambda-computing.com> writes:
> On Dec 2, 4:09 pm, "michele.simion...@gmail.com"
> gmail.com> wrote:
>> On Dec 2, 4:04 pm, "Rüdiger Klaehn" lambda-computing.com> wrote:
>>
>>> Hello everybody,
>>
>>> I got a question. Is there anything like a verbose functional language
>>> that attempts to be easily readable?
>>
>> As a beginner, I find SML easily readable.
>>
> Me too.

Not me. There are a lot of very good things about SML,
but I find the syntax to be a big stumbling block.
Maybe I'd get used to it if I programmed in SML a lot.
Show full article (2.51Kb)
no comments
Re: Verbose functional languages?         


Author: Robert A Duff
Date: Dec 2, 2007 13:44

Bruno Desthuilliers writes:
> Pascal Costanza a écrit :
>> In case you don't insist on purity and can live with dynamic typing,
>> try Scheme and Common Lisp, especially Common Lisp or ISLISP.
>
> Ho, yes... Sooo readable. What names like car, cdr or progn are supposed
> to mean is pretty obvious, indeed.

I can memorize the meaning of car and cdr -- that's not a big hindrance
to me (although I think head and tail would be more civilized).

But most Lisp code uses pretty readable (longish) names for things,
which I like.

I'm not a huge fan of "Lots of Incredibly Silly Parentheses",
but the Lisp-style syntax seems far superior to the
syntax of ML-style languages. At least in Lisp I can tell
where the end of each thing is (perhaps with the help of
a fancy editor, but at worst, by counting parens).
And Lisp syntax has the advantage of being simple.
No need to memorize precedence rules and the like.

- Bob
no comments
Re: Verbose functional languages?         


Author: Rainer Joswig
Date: Dec 2, 2007 13:56

In article registered.motzarella.org>,
Ben Franksen wrote:
> Rüdiger Klaehn wrote:
>> I find that many people are confused by the very compact syntax of
>> existing functional languages such as haskell and ocaml and therefore
>> miss out on the big advantages of these languages such as referential
>> transparency.
>
> Are they? I always find it difficult to convince people of the practical
> utility of referential transparency. OTOH, few people who see an elegant
> compact Haskell expression deny that it is a great advantage to express
> things so concisely (that is, after they get it explained and understand
> what it means). I wonder how a more verbose syntax could improve on the
> readability of e.g.
>
> map (+1)
>
> for a function which increments all elements in a list.
Show full article (1.45Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Hypergeometric functions and beta functionssci.math ·
1 2 3 4 5 6 7 8 9