From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 2B68FBB81 for ; Wed, 22 Mar 2006 07:00:16 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k2M60FFP031280 for ; Wed, 22 Mar 2006 07:00:15 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA10551 for ; Wed, 22 Mar 2006 07:00:14 +0100 (MET) Received: from grymling.conjury.org (grymling.conjury.org [69.12.155.90]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k2M60D7R031273 for ; Wed, 22 Mar 2006 07:00:14 +0100 Received: from localhost (localhost [127.0.0.1]) by grymling.conjury.org (Postfix) with ESMTP id 90D87A4868 for ; Tue, 21 Mar 2006 22:00:10 -0800 (PST) Received: from grymling.conjury.org ([127.0.0.1]) by localhost (grymling.conjury.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06434-02 for ; Tue, 21 Mar 2006 22:00:05 -0800 (PST) Received: from [10.0.1.200] (station.conjury.org [69.12.155.91]) by grymling.conjury.org (Postfix) with ESMTP id 15719A4849 for ; Tue, 21 Mar 2006 22:00:05 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v746.3) Content-Transfer-Encoding: quoted-printable Message-Id: Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed To: The Caml Trade From: j h woodyatt Subject: syntax annoyance Date: Tue, 21 Mar 2006 22:00:07 -0800 X-Mailer: Apple Mail (2.746.3) X-Virus-Scanned: by amavisd-new at conjury.org X-Miltered: at nez-perce with ID 4420E7EF.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4420E7ED.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; woodyatt:01 jhw:01 syntax:01 everyone--:01 syntax:01 elided:01 woodyatt:01 jhw:01 parentheses:01 parentheses:01 int:01 int:01 seems:03 redundant:05 object:09 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 everyone-- You know what? > # type r =3D { x : int; y: int };; > type r =3D { x : int; y : int; } > # Some { x =3D 0; y =3D 1 };; > - : r option =3D Some {x =3D 0; y =3D 1} > # Some object method x =3D 0 method y =3D 1 end;; > Syntax error > # Some (object method x =3D 0 method y =3D 1 end);; > - : < x : int; y : int > option =3D Some It seems to me that the parentheses are sorta redundant, and it would =20= be nice if they could be elided. It's weird that the "r option" case =20= works without additional parentheses and the " option" requires =20 them. Just venting. Thanks for listening. =97 j h woodyatt