From: Ken Wakita <wakita@is.titech.ac.jp>
To: Paul Stodghill <stodghil@CS.Cornell.EDU>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Naming conventions
Date: Wed, 08 May 2002 23:04:35 +0900 [thread overview]
Message-ID: <B8FF5F83.15E2%wakita@is.titech.ac.jp> (raw)
In-Reply-To: <E4B8DE6B1848DD4D9248EFCCF9A59F4B05D937@opus.cs.cornell.edu>
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
next prev parent reply other threads:[~2002-05-08 14:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-08 13:10 Paul Stodghill
2002-05-08 14:04 ` Ken Wakita [this message]
2002-05-08 13:31 Gregory Morrisett
2002-05-08 13:33 Krishnaswami, Neel
2002-05-08 13:59 ` Dave Mason
2002-05-08 17:12 ` Pierre Weis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B8FF5F83.15E2%wakita@is.titech.ac.jp \
--to=wakita@is.titech.ac.jp \
--cc=caml-list@inria.fr \
--cc=stodghil@CS.Cornell.EDU \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox