English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2002-05-08 (13:10)
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.

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