caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Diego Olivier Fernandez Pons <Diego.FERNANDEZ_PONS@etu.upmc.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] native code and ZINC machine
Date: Mon, 8 Nov 2004 09:52:05 +0100 (NFT)	[thread overview]
Message-ID: <Pine.A41.4.44.0411080943520.2170902-100000@ibm1> (raw)
In-Reply-To: <20041106093748.GA26835@yquem.inria.fr>

    Bonjour,

Xavier Leroy a écrit :

[...]

> However, following the principle of least surprise, it tries to
> enforce the same evaluation order as the bytecode compiler, that is,
> right-to-left.

J'aurai tendance à penser qu'avoir des compilateurs qui évaluent leurs
arguments dans des sens différents est plus une force qu'une
faiblesse. Cela permet de détecter des bogues (car il est raisonnable
d'estimer que tout code va être testé sur les deux compilateurs).

J'ai trouvé une fois dans mon code un bogue car j'évaluait mentalement
de gauche à droite et le compilateur de droite à gauche. Ce jour j'ai
compris l'utilité d'évaluer dans un ordre que je trouvais auparavant
"anti-intuitif".


        Diego Olivier



      parent reply	other threads:[~2004-11-08  8:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-05 14:25 Aaron Bohannon
2004-11-06  9:37 ` [Caml-list] " Xavier Leroy
2004-11-06 16:53   ` David Brown
2004-11-08  8:52   ` Diego Olivier Fernandez Pons [this message]

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.A41.4.44.0411080943520.2170902-100000@ibm1 \
    --to=diego.fernandez_pons@etu.upmc.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;
as well as URLs for NNTP newsgroup(s).