caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Jeremy Fincher" <tweedgeezer@hotmail.com>
To: caml-list@pauillac.inria.fr
Subject: [Caml-list] Some more code written by a newbie to be reviewed by *real* O'Caml coders :)
Date: Mon, 02 Jul 2001 02:52:07 -0400	[thread overview]
Message-ID: <F79WXWzRPTNZStgLzhV0000b062@hotmail.com> (raw)

I'm fairly new to O'Caml, and I hope that a few more experienced O'Caml 
programmers can review some of the code I've written to show me how things 
can be done better, what parts I've done that stray from O'Caml idiom, and 
so on...so here's some more code I hope a few people will take the time to 
review :)

I'm coming from Python, so I figured one fairly simple thing I can do to 
ease the transition and get some practice working with O'Caml is to rewrite 
some of the more featureful python modules in O'Caml.  Here's an 
implementation of most of the useful (read: stuff I've used :)) functions 
from the Python "string" module.  Don't worry if you don't know Python or 
that module -- I've written an interface file that comments what each 
function is supposed to do.

Here are the files:

http://members.aol.com/jemfinch02/py_string.mli
http://members.aol.com/jemfinch02/py_string.ml

The one thing I think would be better done already is that the functions 
should probably take the string they're to operate on as their last 
argument, so new functions can be created more easily by partial function 
application.

Anyway, if anyone does review this code, feel free to rip it apart -- I'm 
far more concerned with becoming a better O'Caml programmer than with 
keeping my pride :)

Jeremy

(PS: Sorry about the AOL links, but that's the ISP my family uses, and since 
I'm "en vacances" for the summer, it's what I'm stuck with :))
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


                 reply	other threads:[~2001-07-02  6:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=F79WXWzRPTNZStgLzhV0000b062@hotmail.com \
    --to=tweedgeezer@hotmail.com \
    --cc=caml-list@pauillac.inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).