From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 6591B7EE4B for ; Wed, 25 Sep 2013 21:54:16 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of bobzhang1988@gmail.com) identity=pra; client-ip=209.85.213.178; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="bobzhang1988@gmail.com"; x-sender="bobzhang1988@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of bobzhang1988@gmail.com designates 209.85.213.178 as permitted sender) identity=mailfrom; client-ip=209.85.213.178; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="bobzhang1988@gmail.com"; x-sender="bobzhang1988@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ye0-f178.google.com) identity=helo; client-ip=209.85.213.178; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="bobzhang1988@gmail.com"; x-sender="postmaster@mail-ye0-f178.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmMBAPU+Q1LRVdWynGdsb2JhbABbhzq9K4EgFg4BAQEBAQYNCQkUKIIlAQEFIw8BBQgBGxwCAwwGBQsNAgIFFgsCAgkDAgECARERAQUBHAYBDAYCAQGHbwEDD51njAFRgweEMAoZJw1kiQABBQyBHY4vgmiBNQOXfJAOQYRo X-IPAS-Result: AmMBAPU+Q1LRVdWynGdsb2JhbABbhzq9K4EgFg4BAQEBAQYNCQkUKIIlAQEFIw8BBQgBGxwCAwwGBQsNAgIFFgsCAgkDAgECARERAQUBHAYBDAYCAQGHbwEDD51njAFRgweEMAoZJw1kiQABBQyBHY4vgmiBNQOXfJAOQYRo X-IronPort-AV: E=Sophos;i="4.90,980,1371074400"; d="scan'208";a="28094896" Received: from mail-ye0-f178.google.com ([209.85.213.178]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 25 Sep 2013 21:54:15 +0200 Received: by mail-ye0-f178.google.com with SMTP id m5so71366yen.9 for ; Wed, 25 Sep 2013 12:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=yqbC7VL/fGqxqruL+l5bMfh9FyDs9/pHt/dcW3t7QNI=; b=nNohpcMXWPCErEiOvNuUjua4QZ0XG4AnlxTAKnp7TBDQCr2do59hr6UXsNEPOVsRIe VZHCc69LEVKJvjaWzA0ElLNBxK/V0e+AweK7zjgQi8siDZcYdqRrz0r/XTk1Yq4WpZmI vo3BWzxn64WAh11bVxHFvklhVuPgc66MHqjLbSP79CzfivLYEydgyDe26sPwJiccbEal 81U5WhG0OkIgHJLbXEJDu1Ezto01e+7MluUKhHVWHzptqvMaf8Y9LmjGYlVnHknypFny gXpTuOqLfuFhrVpPv0D5PM+ky7WBTwEOcWYvexF13uhEOWQCU6IPhP1zvq8RNTZmdxMK rpMg== X-Received: by 10.236.90.195 with SMTP id e43mr2217974yhf.106.1380138853959; Wed, 25 Sep 2013 12:54:13 -0700 (PDT) Received: from Hongbos-MacBook-Air.local ([158.130.111.221]) by mx.google.com with ESMTPSA id c44sm56231109yho.20.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Sep 2013 12:54:13 -0700 (PDT) Message-ID: <52433F6A.6080008@gmail.com> Date: Wed, 25 Sep 2013 15:54:18 -0400 From: Hongbo Zhang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Hendrik Tews , Caml List References: <21057.62779.166955.488865@blau.inf.tu-dresden.de> <52427563.5090604@glondu.net> <6x4n99h04f.fsf@blau.inf.tu-dresden.de> In-Reply-To: <6x4n99h04f.fsf@blau.inf.tu-dresden.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] Enhanced OCaml Documentation 4.01 On 9/25/13 2:43 AM, Hendrik Tews wrote: > Stéphane Glondu 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 >