Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Loup Vaillant" <loup.vaillant@gmail.com>
To: "Caml mailing list" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Misunderstandings about the AST
Date: Wed, 28 Mar 2007 08:42:25 +0200	[thread overview]
Message-ID: <6f9f8f4a0703272342k6a263784r9a4ecd84d229caa4@mail.gmail.com> (raw)
In-Reply-To: <6f9f8f4a0703271034m3be7cdc8t43708c8a8a2144ce@mail.gmail.com>

Thank you for your help, I will get back to work.

2007/3/27, Nicolas Pouillard <nicolas.pouillard@gmail.com>:
> On 3/27/07, Loup Vaillant <loup.vaillant@gmail.com> wrote:
> > | Pexp_lazy of expression
> > Why does this constructor even exist? Are some specific optimizations made?
>
> Since the evaluation of the expression is delayed it's not a plain function.

Actually, I knew that.
However, given the following expressions are semantically equivalent:

lazy expr;;
lazy_from_fun (fun () -> expr);;

With "lazy_from_fun" being a plain function,
my point is then to know if they are really equivalent
(e.g. implementation wise), so I can assume
the keyword "lazy" is just syntactic sugar.

Loup

PS: Nicolas, Sorry for the double post, I messed up the "reply" button.


  parent reply	other threads:[~2007-03-28  6:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-27 13:44 Loup Vaillant
2007-03-27 14:06 ` [Caml-list] " Nicolas Pouillard
     [not found]   ` <6f9f8f4a0703271034m3be7cdc8t43708c8a8a2144ce@mail.gmail.com>
2007-03-28  6:42     ` Loup Vaillant [this message]
2007-03-28 12:30       ` Nicolas Pouillard
2007-03-27 14:13 ` Jeremy Yallop

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=6f9f8f4a0703272342k6a263784r9a4ecd84d229caa4@mail.gmail.com \
    --to=loup.vaillant@gmail.com \
    --cc=caml-list@yquem.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