[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2002-05-08 (14:04) |
From: | Ken Wakita <wakita@i...> |
Subject: | Re: [Caml-list] Naming conventions |
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" <stodghil@CS.Cornell.EDU> > Date: Wed, 8 May 2002 09:10:53 -0400 > To: "Caml Mailing List (E-mail)" <caml-list@inria.fr> > 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