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 QAA31639; Wed, 8 May 2002 16:04:33 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 QAA31895 for ; Wed, 8 May 2002 16:04:32 +0200 (MET DST) Received: from ttvmx4p.vdn.ttcn.ne.jp (mx4.vdn.ttcn.ne.jp [211.1.103.123]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g48E4U907138 for ; Wed, 8 May 2002 16:04:31 +0200 (MET DST) Received: from [192.168.0.3] ([61.114.8.196]) by ttvmx4p.vdn.ttcn.ne.jp with ESMTP id <20020508140423.NZTS8248.ttvmx4p@[61.114.8.196]>; Wed, 8 May 2002 23:04:23 +0900 User-Agent: Microsoft-Entourage/10.0.0.1331 Date: Wed, 08 May 2002 23:04:35 +0900 Subject: Re: [Caml-list] Naming conventions From: Ken Wakita To: Paul Stodghill , caml-list Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a feature I would like to have. In Scheme, I used to put '*' at the end of a list of elements and '+' at the end of a list of one or more elements. Ken Wakita > From: "Paul Stodghill" > Date: Wed, 8 May 2002 09:10:53 -0400 > To: "Caml Mailing List (E-mail)" > Subject: [Caml-list] Naming conventions > > In Scheme, there is a conventtion that the names of destructive functions end > with "!" and predicates end with "?". E.g., "append!" vs. "append", and > "null?", "pair?", etc. > > Are there any similar conventions that people use in O'Caml? > > I ask because I am implementing a class and I want to provide both destructive > and non-destructive versions of some of the methods. I would like the method > names to clearly indicate which is which. > > Thanks. > ------------------- > 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