caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeremy Yallop <yallop@gmail.com>
To: Alain Frisch <alain.frisch@lexifi.com>
Cc: Gabriel Scherer <gabriel.scherer@gmail.com>,
	Oleg Kiselyov <oleg@okmij.org>,
	 Jun Furuse <jun.furuse@gmail.com>,
	caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] [ANN] ppx_monadic.1.0.2, ppx for monadic do,
Date: Mon, 19 Jan 2015 16:10:08 +0000	[thread overview]
Message-ID: <CAAxsn=F18dauNVNkHcavwq=af+OrnEr1UMz03q6FJKVta0=e2g@mail.gmail.com> (raw)
In-Reply-To: <54BCD113.70309@lexifi.com>

On 19 January 2015 at 09:40, Alain Frisch <alain.frisch@lexifi.com> wrote:
> On 01/19/2015 10:06 AM, Gabriel Scherer wrote:
>>
>> (On the other hand, the remark that the existing uses of keyword-bang in
>> the language, namely (method!) and (open!), could now be represented as
>> annotations is fairly reasonable.)
>
> Indeed, these ! markers only affect warnings, and don't change the static or
> dynamic semantics otherwise, so I wouldn't be shocked if they were
> represented internally with attributes.  Unless perhaps if we consider that
> forcing users to mark method overrides, as in many other class-based OO
> languages, should become part of the language definition (i.e. turned into a
> strong error at some point).

A nit: for methods, at least, the ! already produces an error in the
case where the method is not previously defined:

   # object method! m = 3 end;;
  Characters 7-20:
    object method! m = 3 end;;
           ^^^^^^^^^^^^^
  Error: The method `m' has no previous definition

  reply	other threads:[~2015-01-19 16:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 14:23 [Caml-list] [ANN] ppx_monadic.1.0.2, ppx for monadic do, pattern guards and monadic comprehension Jun Furuse
2015-01-14  8:40 ` [Caml-list] [ANN] ppx_monadic.1.0.2, ppx for monadic do, pattern oleg
2015-01-18 14:47   ` Jun Furuse
2015-01-19  7:33     ` [Caml-list] [ANN] ppx_monadic.1.0.2, ppx for monadic do, oleg
2015-01-19  8:34       ` Alain Frisch
2015-01-19  9:06         ` Gabriel Scherer
2015-01-19  9:40           ` Alain Frisch
2015-01-19 16:10             ` Jeremy Yallop [this message]
2015-01-19  8:56     ` [Caml-list] [ANN] ppx_monadic.1.0.2, ppx for monadic do, pattern Alain Frisch
2015-01-19 21:52       ` Drup
2015-01-20  3:53         ` Jun Furuse

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='CAAxsn=F18dauNVNkHcavwq=af+OrnEr1UMz03q6FJKVta0=e2g@mail.gmail.com' \
    --to=yallop@gmail.com \
    --cc=alain.frisch@lexifi.com \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@gmail.com \
    --cc=jun.furuse@gmail.com \
    --cc=oleg@okmij.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).