From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] syntaxes
Date: Fri, 4 Oct 2002 10:32:51 +0200 [thread overview]
Message-ID: <20021004103251.A7826@verdot.inria.fr> (raw)
In-Reply-To: <Pine.LNX.4.21.0210040935200.5771-100000@mlabdial.hit.bme.hu>; from kgergely@mlabdial.hit.bme.hu on Fri, Oct 04, 2002 at 09:40:47AM +0200
Hi,
On Fri, Oct 04, 2002 at 09:40:47AM +0200, Kontra, Gergely wrote:
> 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.
We could answer: why "standard ML" has a different syntax than Caml?
Caml is as old as standard ML: we did not decide to differentiate.
Don't be fixed on the word "standard" which is just a "marketting"
term, not a real standardization.
Well, if you prefer standard ML syntax, do it! and compile your
programs by:
ocamlc -pp "camlp4 pa_sml.cmo pr_dump.cmo" -c foo.ml
And why not Scheme syntax:
ocamlc -pp "camlp4 pa_scheme.cmo pr_dump.cmo" -c foo.ml
> Sometimes SML solution is shorter.
For example?
> 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.
That's right: but this difference is not just syntax: it has big
consequences on typing.
--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
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
next prev parent reply other threads:[~2002-10-04 8:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-04 7:40 Kontra, Gergely
2002-10-04 8:32 ` Daniel de Rauglaudre [this message]
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=20021004103251.A7826@verdot.inria.fr \
--to=daniel.de_rauglaudre@inria.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