Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Naming conventions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Paul Stodghill <stodghil@C...>
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