caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Yaron Minsky <yminsky@janestreet.com>
To: Mehdi Dogguy <mehdi@dogguy.org>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Custom let bindings
Date: Fri, 20 Jan 2012 07:47:02 -0500	[thread overview]
Message-ID: <CACLX4jT4Mc4ZbgZC=eRpEwTkin4mNmpSvJZ62-SDbNix+4nmuw@mail.gmail.com> (raw)
In-Reply-To: <4F196092.7060707@dogguy.org>

[-- Attachment #1: Type: text/plain, Size: 1654 bytes --]

We use monads quite a bit, and the lack of a monadic syntax has been a
long-running issue for us at Jane Street.  I'd love to see some kind of
monadic syntax land.  I've seen the proposal, and it seems highly
plausible.  Also, having a special operator (let!) has been proposed as
part of this I believe, and that seems like a good idea too.

y

On Fri, Jan 20, 2012 at 7:39 AM, Mehdi Dogguy <mehdi@dogguy.org> wrote:

> Hi,
>
> I noticed that Alain Frisch tried to add custom let bindings (see r11894
> and r11906) but it was reverted later on (see r11960) because no
> consensus was reached (among OCaml Core team, I guess). AFAIR, I don't
> remember seeing this on the caml-list. I'd personally vote for its
> inclusion as I can see some uses for it. As any syntaxic sugar, it is
> something we can live without but it could make things easier to read or
> to express.
>
> FTR, the proposal is to add the following:
>
>        “let.e0 p = e1 in e2” will be expanded to “e0 e1 (fun p -> e2)”.
>
> I'm not sure which part of the proposal was not agreed on (the syntaxic
> details "let.e0" or the whole proposal). Any input from the core team would
> be appreciated.
>
> What do others think about it?
>
> Regards,
>
> --
> Mehdi Dogguy
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/**wws/info/caml-list<https://sympa-roc.inria.fr/wws/info/caml-list>
> Beginner's list: http://groups.yahoo.com/group/**ocaml_beginners<http://groups.yahoo.com/group/ocaml_beginners>
> Bug reports: http://caml.inria.fr/bin/caml-**bugs<http://caml.inria.fr/bin/caml-bugs>
>
>

[-- Attachment #2: Type: text/html, Size: 2138 bytes --]

  reply	other threads:[~2012-01-20 12:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 12:39 Mehdi Dogguy
2012-01-20 12:47 ` Yaron Minsky [this message]
2012-01-22 10:23 ` Xavier Leroy
2012-01-22 10:43   ` Jonathan Protzenko
2012-01-22 12:18     ` ivan chollet
2012-01-22 15:18   ` Jacques Carette

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='CACLX4jT4Mc4ZbgZC=eRpEwTkin4mNmpSvJZ62-SDbNix+4nmuw@mail.gmail.com' \
    --to=yminsky@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=mehdi@dogguy.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).