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 UAA22938; Tue, 8 Apr 2003 20:42:43 +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 UAA23022 for ; Tue, 8 Apr 2003 20:42:42 +0200 (MET DST) Received: from periwinkle.noc.ucla.edu (periwinkle.noc.ucla.edu [169.232.47.11]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h38IgeX03753 for ; Tue, 8 Apr 2003 20:42:40 +0200 (MET DST) Received: from azalea.noc.ucla.edu (azalea.noc.ucla.edu [169.232.47.12]) by periwinkle.noc.ucla.edu (8.12.8/8.12.8) with ESMTP id h38IgcQh003481 for ; Tue, 8 Apr 2003 11:42:38 -0700 Received: from humnet.ucla.edu (vp191002.reshsg.uci.edu [128.195.191.2]) (authenticated bits=0) by azalea.noc.ucla.edu (8.12.8p1/8.12.8) with ESMTP id h38Igag0017725 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Tue, 8 Apr 2003 11:42:38 -0700 Message-ID: <3E932611.8090006@humnet.ucla.edu> Date: Tue, 08 Apr 2003 12:42:09 -0700 From: "Daniel M. Albro" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] single-line comment request References: <4.3.2.7.2.20030408091635.037a29b0@localhost> <4.3.2.7.2.20030408110617.0389bde8@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.25 / SpamAssassin 2.43 / mail.ucla.edu X-Probable-Spam: no X-Spam-Hits: -1.7 X-Spam: no; 0.00; ucla:99 caml-list:01 %%,:99 hecker:01 noticeably:01 multiline:01 nontrivial:01 avoiding:01 bug:01 faq:01 beginner's:01 beginners:01 bin:01 chris:01 caml-bugs:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. Chris Hecker wrote: > >> > Actually, just to fuel the fire, it's not just stylish. Single-line >> > comments are sometimes easier to work with programmatically >> Not noticeably in my experience. > > > Hmm, well I guess I have different experiences from you on this front. > > This is starting to become a "you don't need that" argument. The > backwards compatibility argument is the only one you've given that has > any actual technical objectivity behind it, and it's pretty weak because > almost every iteration of caml isn't backwards compatible (if not in > core language, then library functions, etc.) and I want it that way and > think they should accelerate that. Much better to get changes out of > the way now than later when caml is more popular. > > As for editor macros and parsing, I'm familiar with my editor, thanks. > The point is you need to write no macros when doing a lot of operations > with single line comments, versus having to write macros to handle > things as easily with multiline. That indicates a complexity for > operations that you don't seem to acknowledge. If you're at a different > editor and don't have your macros, who's better off? And, the macros > are nontrivial in the cases of mixed length code and nested comments and > whatnot. A lot of operations are just more complicated with bracketed > comments since you have to keep state [that standard regexs can't > handle]. I don't see how you can argue the contrary. > > There's really no downside that I can see to supporting them besides > minor backwards compatibility (but hey, if you want to port back, just > write an editor macro to convert them since you argue they're so easy! > :), using another token, and somebody has to go implement them. There > are many minor upsides, including a bunch that haven't been listed like > avoiding questions about this topic on the list, and matching people's > intuition from C++, etc. It seems like a clear win to me. > > Chris > > > ------------------- > 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 > ------------------- 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