From: Hongbo Zhang <bobzhang1988@gmail.com>
To: Hendrik Tews <tews@os.inf.tu-dresden.de>,
Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Enhanced OCaml Documentation 4.01
Date: Wed, 25 Sep 2013 15:54:18 -0400 [thread overview]
Message-ID: <52433F6A.6080008@gmail.com> (raw)
In-Reply-To: <6x4n99h04f.fsf@blau.inf.tu-dresden.de>
On 9/25/13 2:43 AM, Hendrik Tews wrote:
> Stéphane Glondu <steph@glondu.net> writes:
>
> Le 24/09/2013 22:25, Hendrik Tews a écrit :
> > [...]
> > the documentation approves what long-term OCaml hackers have been
> > using for years to improve their code. You can use an infix
> > symbol as for-loop-variable:
> >
> > for (+) = ... to ... do ... done
> >
> > will (mostly) work as (un)expected!
>
> Really? People actually do that?
>
> Stéphane, if you quote me, please don't erase the smilies, I use
> them rarely enough!
>
> The above was a joke, but I was really surprised to see that
>
> for (+) = 1 to 5 do Printf.printf "%d\n" ((+) * 2) done
>
> actually works. I still wonder, if there is a useful application
> for this "feature".
I think we really need a hand written parser sometime :-)
>
> Bye,
>
> Hendrik
>
prev parent reply other threads:[~2013-09-25 19:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 20:25 Hendrik Tews
2013-09-25 5:32 ` Stéphane Glondu
2013-09-25 6:43 ` Hendrik Tews
2013-09-25 19:54 ` Hongbo Zhang [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=52433F6A.6080008@gmail.com \
--to=bobzhang1988@gmail.com \
--cc=caml-list@inria.fr \
--cc=tews@os.inf.tu-dresden.de \
/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