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] Re: New Features (Common Database Interface)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-15 (13:56)
From: cashin@c...
Subject: Re: [Caml-list] Re: New Features (Common Database Interface)
Thanks to Matt for sharing the code, by the way.

Matt Boyd <mattwb@alve.com> writes:

> exception End_of_rows
> (** Raised when query results ends. *)

I didn't really read the code, but I noticed the End_of_rows exception
and I'd like to know folks' opinions about it.

I know that's analogous to End_of_file, but since an infinite number
of rows would be a lot more exceptional than a finite number, isn't
this a strange use of exceptions?  I would guess that iteration or
recursion would be more efficient and expressive.

--Ed L Cashin            |   PGP public key:
  ecashin@uga.edu        |   http://noserose.net/e/pgp/

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