caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Custom let bindings
@ 2012-01-20 12:39 Mehdi Dogguy
  2012-01-20 12:47 ` Yaron Minsky
  2012-01-22 10:23 ` Xavier Leroy
  0 siblings, 2 replies; 6+ messages in thread
From: Mehdi Dogguy @ 2012-01-20 12:39 UTC (permalink / raw)
  To: caml users

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-22 15:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20 12:39 [Caml-list] Custom let bindings Mehdi Dogguy
2012-01-20 12:47 ` Yaron Minsky
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

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).