Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Julian Assange <proff@iq.org>
To: Jym <Jean-Yves.Moyen@loria.fr>
Cc: Caml mailing list <caml-list@inria.fr>
Cc: proff@iq.org
Subject: Re: let ... in layout
Date: 16 Mar 2000 09:18:04 +1100	[thread overview]
Message-ID: <wxvh2nyj1f.fsf@suburbia.net> (raw)
In-Reply-To: Jean-Yves Moyen's message of "Wed, 15 Mar 2000 09:22:34 +0100 (MET)"

Jean-Yves Moyen <Jean-Yves.Moyen@loria.fr> writes:

> let f a b c=
>   match a,b,c with
>     ...
> 
> which allows you to match several arguments at once.

Sure, but

let f a b c =
   match a,b,c with
        0,1,2 -> 3

is a lot more cluttered than

f 0 1 2 = 3

This wouldn't really be an issue except that pattern matching is so
common. Intuitive brevity (as opposed to the brevity represented by
languages such as perl) is what makes both haskell and *ml so
readable. While both functions seem equally readable because they are
both small, once you have a screen full of them there is a significant
difference in clarity.

Cheers,
Julian.



  reply	other threads:[~2000-03-17  9:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-15  1:33 Julian Assange
2000-03-15  8:22 ` Jean-Yves Moyen
2000-03-15 22:18   ` Julian Assange [this message]
2000-03-17  9:42     ` Pierre Weis
2000-03-15  8:56 ` Benoit Deboursetty
2000-03-17 13:16 ` Dmitri Lomov

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=wxvh2nyj1f.fsf@suburbia.net \
    --to=proff@iq.org \
    --cc=Jean-Yves.Moyen@loria.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