From: John Prevost <jmp@arsdigita.com>
To: Pascal Brisset <brisset@recherche.enac.fr>
Cc: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>, caml-list@inria.fr
Subject: Re: Ref syntax
Date: 22 Dec 2000 16:37:09 -0800 [thread overview]
Message-ID: <87ofy4m0qy.fsf@elbereth.pgh.arsdigita.com> (raw)
In-Reply-To: <E149OKL-0003m8-00@sepia.recherche.enac.fr>
>>>>> "pb" == Pascal Brisset <brisset@recherche.enac.fr> writes:
pb> On my wish list, I put a "-strict" option for ocamlc which
pb> would remove freedom in the syntax. For example
pb> - ";" means "sequence" and not "end of expr" (it is currently
pb> allowed before "end" in a block)
pb> - "|" means "or" or "start of pattern" but not both
What do you mean? In terms of "or patterns"?
pb> - ";;" is compulsory
Oh god no. Please, no. I believe that if anything, strict syntax
should not allow ";;". It's only necessary if you write imperative
things at the top level, and even then, I believe it's preferable to
use "let _ = ...". If you're aiming to make things clearer, get rid
of it totally.
pb> - deprecated "&" and "or" operators removed
So only && and ||? That's somewhat reasonable.
But please, no, never encourage anybody to use ;;!
John.
next prev parent reply other threads:[~2000-12-25 21:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-14 14:12 Type annotations Ohad Rodeh
2000-12-15 2:25 ` Jacques Garrigue
2000-12-21 12:50 ` Ref syntax Ohad Rodeh
2000-12-22 3:29 ` Jacques Garrigue
2000-12-22 8:45 ` Sven LUTHER
2000-12-23 0:30 ` John Prevost
2000-12-22 9:07 ` Pierre Weis
2000-12-22 9:30 ` Jacques Garrigue
2000-12-22 14:22 ` Pierre Weis
2000-12-22 19:24 ` Marcin 'Qrczak' Kowalczyk
2000-12-22 9:17 ` Pascal Brisset
2000-12-23 0:37 ` John Prevost [this message]
2000-12-22 16:40 ` Marcin 'Qrczak' Kowalczyk
2000-12-23 0:39 ` John Prevost
2000-12-25 21:58 ` 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=87ofy4m0qy.fsf@elbereth.pgh.arsdigita.com \
--to=jmp@arsdigita.com \
--cc=brisset@recherche.enac.fr \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.ac.jp \
/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).