caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "David Brown" <caml@davidb.org>
To: "Hendrik Tews" <tews@tcs.inf.tu-dresden.de>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] OCaml IDE (Camlp4 for code formatting)
Date: Tue, 21 Jun 2005 11:11:35 -0700	[thread overview]
Message-ID: <op.ssqfhlu2ho2unb@shadowdb.qualcomm.com> (raw)
In-Reply-To: <rlslzbeo1p.fsf@ithif59.inf.tu-dresden.de>

On Tue, 21 Jun 2005 08:18:26 -0700, Hendrik Tews  
<tews@tcs.inf.tu-dresden.de> wrote:

> Not sure if you got me right: The two phrases "let _ = 5" and "5"
> are semantically equivalent and probably compiled to the same
> code. However, they have a different representation as a camlp4
> ast. Still the question remains, why camlp4 rewrites one into the
> other.

The phrase "5" has ambituities that aren't present with the "let _ = 5" so  
it makes sense for a canonical representation to use the let form.   
Compare the following:

   let _ = 5
   let _ = 6

vs.

   5
   6

The first is valid, whereas the second causes an error trying to apply '5'.

Dave


  reply	other threads:[~2005-06-21 18:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-20 20:08 Nathaniel J. Gaylinn
2005-06-21 10:33 ` [Caml-list] " Hendrik Tews
2005-06-21 13:47   ` Nathaniel J. Gaylinn
2005-06-21 15:18     ` Hendrik Tews
2005-06-21 18:11       ` David Brown [this message]
2005-06-29 14:54         ` [Caml-list] Keyboard interrupt in Windows Nathaniel J. Gaylinn
2005-06-29 16:13           ` Christopher A. Watford

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=op.ssqfhlu2ho2unb@shadowdb.qualcomm.com \
    --to=caml@davidb.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=tews@tcs.inf.tu-dresden.de \
    /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).