From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA25323; Tue, 8 Apr 2003 21:54:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA25278 for ; Tue, 8 Apr 2003 21:54:13 +0200 (MET DST) Received: from dux.ru (ns.dux.ru [193.125.210.65]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h38JsCX07097 for ; Tue, 8 Apr 2003 21:54:12 +0200 (MET DST) Received: from dux.ru (localhost [127.0.0.1]) by dux.ru (8.12.6/8.12.6) with ESMTP id h38K1T6X077181 for ; Wed, 9 Apr 2003 00:01:30 +0400 (MSD) (envelope-from snob@snob.spb.ru) Received: (from uucp@localhost) by dux.ru (8.12.6/8.12.1/Submit) with UUCP id h38K1PBf077174 for caml-list@inria.fr; Wed, 9 Apr 2003 00:01:25 +0400 (MSD) (envelope-from snob@snob.spb.ru) Received: (qmail 2262 invoked by uid 0); 8 Apr 2003 19:35:35 -0000 Received: from unknown (HELO athlon.snob.spb.ru) (unknown) by unknown with SMTP; 8 Apr 2003 19:35:35 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Nickolay Semyonov-Kolchin To: "Alexander V. Voinov" , "Daniel M. Albro" Subject: Re: [Caml-list] single-line comment request Date: Tue, 8 Apr 2003 23:19:18 +0500 User-Agent: KMail/1.4.3 Cc: caml-list@inria.fr References: <4.3.2.7.2.20030408091635.037a29b0@localhost> <3E932611.8090006@humnet.ucla.edu> <3E931A8F.6050206@quasar.ipa.nw.ru> In-Reply-To: <3E931A8F.6050206@quasar.ipa.nw.ru> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304082319.18608.snob@snob.spb.ru> X-Spam: no; 0.00; nickolay:01 snob:01 spb:01 caml-list:01 voinov:01 %%,:99 python:01 3.06:01 val:01 '--':99 ocaml:01 caml:01 alexander:01 int:01 syntax:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tuesday 08 April 2003 23:53, Alexander V. Voinov wrote: > Hi All, > > Daniel M. Albro wrote: > > But ## is so *ugly*! It just doesn't look OCaml-ic, since # is > > already the object-call operator. What other possibilities are there= ? > > How about %, %%, --, ' ? If "--" isn't used it might be nice. > > I'd vote for "--" or "%%". The need for a one-line comment is obvious > for me. It's also a matter for quicker adoption among those who is > practically working with Python, C++, Java etc. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Objective Caml version 3.06 # let (--) =3D (+) ;; val ( -- ) : int -> int -> int =3D # let (%%) =3D (+) ;; val ( %% ) : int -> int -> int =3D # let (##) =3D (+) ;; Syntax error # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D We must find a sequence that can't be used as a binary operator. P.S. =09I have nothing against '--', '%%' or whatever. I just want to see easi= ly=20 typed single-line comment in Ocaml. Nickolay ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners