Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk)
To: caml-list@inria.fr
Subject: Re: Revised syntax question
Date: 27 Sep 2000 09:29:11 GMT	[thread overview]
Message-ID: <slrn8t3ff7.1fc.qrczak@qrnik.knm.org.pl> (raw)
In-Reply-To: <20000927075012.C5396@verdot.inria.fr>

Tue, 26 Sep 2000 10:15:05 -0700 (PDT), Brian Rogoff <bpr@best.com> pisze:

> Do you still keep a "do" for loops in your syntax? One of my goals 
> was to unify the syntaxes for looping and sequencing a bit.

I thought the primary goal was to make it look like Haskell :-)

Wed, 27 Sep 2000 07:50:12 +0200, Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr> pisze:

> (Explanation: when you write in OCaml syntax:
>       e1; e2; let x1 = f1 in e3; e4
> actually, this sequence has 3 (not 4) expressions:
>       e1; e2; (let x1 = f1 in e3; e4)
> since the binding x1 = f1 runs up to e4; in my syntax you have to write:
>       do e1; e2; return let x1 = f1 in do e3; return e4
> and I recognize it is ugly.)

Fortunately e3; e4 is not an expression in the revised syntax,
so this syntax would be IMHO nice:

  do e1; e2; let x = f1; e3; return e4

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



  reply	other threads:[~2000-09-27 17:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-26 14:58 Gerard Huet
2000-09-26 17:15 ` Brian Rogoff
2000-09-27  5:50 ` Daniel de Rauglaudre
2000-09-27  9:29   ` Marcin 'Qrczak' Kowalczyk [this message]
2000-09-28  4:36   ` Brian Rogoff
2000-09-28 12:01     ` Daniel de Rauglaudre
  -- strict thread matches above, loose matches on Subject: below --
2000-09-25 16:34 Brian Rogoff

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=slrn8t3ff7.1fc.qrczak@qrnik.knm.org.pl \
    --to=qrczak@knm.org.pl \
    --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