caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Kontra, Gergely" <kgergely@mlabdial.hit.bme.hu>
To: caml-list@inria.fr
Subject: [Caml-list] syntaxes
Date: Fri, 4 Oct 2002 09:40:47 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0210040935200.5771-100000@mlabdial.hit.bme.hu> (raw)

Hi!

I've seen so far, that there are at least 2 version of syntax exists.
My only question is: why has ocaml different syntax than standard ML at
the places, where ocaml is not more efficient.
Eg. it is the same as writing => and ->.
Sometimes SML solution is shorter.
Records in ocaml is not optimal. From a record creation, the type should
be obvious, so labels can be reused in different type of records. And
there is the let ... in ... end (Ada like) construct, which can be used
to avoid ambiguity, (My opinion, that it should be used in try ... with
... end and match ... end constructs, but forget it, uniform syntax may
be a more important point...) not talking about pattern matching in
function heads...

Gergo

+-[Kontra, Gergely @ Budapest University of Technology and Economics]-+
|         Email: kgergely@mcl.hu,  kgergely@turul.eet.bme.hu          |
|  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
+-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


             reply	other threads:[~2002-10-04  7:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-04  7:40 Kontra, Gergely [this message]
2002-10-04  8:32 ` Daniel de Rauglaudre
2002-10-04 10:58   ` Kontra, Gergely
2002-10-04 11:04     ` Daniel de Rauglaudre
2002-10-07  7:06     ` Pierre Weis
2002-10-04  9:22 ` Pierre Weis

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=Pine.LNX.4.21.0210040935200.5771-100000@mlabdial.hit.bme.hu \
    --to=kgergely@mlabdial.hit.bme.hu \
    --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;
as well as URLs for NNTP newsgroup(s).