caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: jhw@conjury.org
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] syntax annoyance
Date: Wed, 22 Mar 2006 17:20:12 +0900 (JST)	[thread overview]
Message-ID: <20060322.172012.78710769.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <B73754DD-E0FF-4444-B097-217565611860@conjury.org>

From: j h woodyatt <jhw@conjury.org>

> > # Some object method x = 0 method y = 1 end;;
> > Syntax error
> > # Some (object method x = 0 method y = 1 end);;
> > - : < x : int; y : int > option = Some <obj>
> 
> It seems to me that the parentheses are sorta redundant, and it would  
> be nice if they could be elided.  It's weird that the "r option" case  
> works without additional parentheses and the "<obj> option" requires  
> them.

Look at the above two lines, and tell me which one is more readable :-)
I hesitated a while before deciding the priority, particularly
considering that the similar looking "begin ... end" doesn't need
parentheses. But I concluded that you don't want _too_ many
parentheses-like constructs in the language.

Jacques Garrigue


      reply	other threads:[~2006-03-22  8:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-22  6:00 j h woodyatt
2006-03-22  8:20 ` Jacques Garrigue [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=20060322.172012.78710769.garrigue@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=jhw@conjury.org \
    /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).