From: Diego Olivier Fernandez Pons <dofp.ocaml@gmail.com>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] "Let"-less syntax for coreML
Date: Tue, 3 Jan 2012 19:43:49 +0100 [thread overview]
Message-ID: <CAHqiZ-L3_qx4sWUrxw57usJkguCb2wuBtRx6d_Gz9aucV_bsqw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]
List,
I was wondering if there was any obstruction to the removal of the "let"
keyword in a syntax for coreML.
My reasoning is that because everytime there is a "let" there is also an
"=" sign, we could completely remove the "let" and use the "=" sign instead
to identify new symbol introductions.
x = 1
s = function x -> x + 1
d = s 1
o = function f g -> function x -> f (g x)
The only cases to handle would be
- comparison "=" sign : replaced by "=="
- let rec : could be ignored or replaced by something else like "=|"
- equational style 'let f x y = x + y' : forbid
Does anyone see anything that could prevent this from being done ?
Diego Olivier
[-- Attachment #2: Type: text/html, Size: 966 bytes --]
next reply other threads:[~2012-01-03 18:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 18:43 Diego Olivier Fernandez Pons [this message]
2012-01-03 19:09 ` Alan Schmitt
2012-01-03 19:12 ` Wojciech Meyer
2012-01-03 22:18 ` Diego Olivier Fernandez Pons
2012-01-03 22:34 ` Gabriel Scherer
2012-01-04 10:05 ` Diego Olivier Fernandez Pons
2012-01-04 10:57 ` Pierre-Alexandre Voye
2012-01-04 11:08 ` Andrej Bauer
2012-01-04 11:06 ` Daniel Bünzli
2012-01-04 12:18 ` Yaron Minsky
2012-01-04 13:30 ` Diego Olivier Fernandez Pons
2012-01-04 15:50 ` Edgar Friendly
2012-01-04 17:12 ` Damien Doligez
2012-01-04 16:59 ` Markus Mottl
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=CAHqiZ-L3_qx4sWUrxw57usJkguCb2wuBtRx6d_Gz9aucV_bsqw@mail.gmail.com \
--to=dofp.ocaml@gmail.com \
--cc=caml-list@inria.fr \
/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