caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Map.fold behavior changed
@ 2006-02-24 11:22 EEK Cooper
  2006-02-24 11:43 ` [Caml-list] " Jean-Christophe Filliatre
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: EEK Cooper @ 2006-02-24 11:22 UTC (permalink / raw)
  To: caml-list

Hi all,

My team just noticed that the behavior of Map.fold changed in OCaml 
version 3.08.4.

I'm concerned that the OCaml team would change the behavior of a 
library function so late in its life. I understand that it was thought 
to be "wrong" <http://caml.inria.fr/mantis/view.php?id=3607>, but 
changing the behavior of an existing function breaks existing apps and 
shouldn't be done lightly. Such changes should, of course, be carefully 
highlighted in a change log as *incompatible* changes, requring updates 
to existing programs--this one was buried under "bug fixes." The old 
behavior was apparently longstanding since 1995 
<http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/stdlib/map.ml?annotate=1.15;f=h> 
versus 
<http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/stdlib/map.ml?annotate=1.15.4.1;f=h>. If OCaml is meant to be a practical programming language, it should provide consistency for its users from version to 
version.

That said, we're now in the position where we need to compile different 
code depending on the version of OCaml. What's the best way to do 
conditional compilation in OCaml? Should we use cpp and #ifdef, or is 
there a more OCaml-savvy solution?

Thanks in advance,
Ezra



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2006-03-15 21:18 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-24 11:22 Map.fold behavior changed EEK Cooper
2006-02-24 11:43 ` [Caml-list] " Jean-Christophe Filliatre
2006-02-24 13:29   ` EEK Cooper
2006-02-24 13:44     ` Jean-Christophe Filliatre
2006-02-24 14:13     ` Damien Doligez
2006-02-24 15:43       ` Brian Hurt
2006-02-24 16:20         ` Jean-Christophe Filliatre
2006-02-24 16:01       ` Joaquin Cuenca Abela
2006-02-27 12:59         ` Damien Doligez
2006-03-02 13:57           ` Ezra Cooper
2006-03-03 15:41             ` N. Owen Gunden
2006-03-09  7:14               ` Florian Hars
2006-03-13 16:31                 ` Damien Doligez
2006-03-15  7:27                   ` Florian Hars
2006-03-15  7:37                     ` Jon Harrop
2006-03-15  7:40                     ` Alain Frisch
2006-03-15  8:41                       ` Florian Hars
2006-03-15 21:18                         ` Christophe Raffalli
2006-02-24 15:31 ` Brian Hurt
2006-03-01  5:20 ` Nathaniel Gray
2006-03-01  9:33   ` Nicolas Pouillard

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).