Version française
Home     About     Download     Resources     Contact us    
Browse thread
Map.fold behavior changed
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ezra Cooper <e.e.k.cooper@s...>
Subject: Re: [Caml-list] Map.fold behavior changed
Damien Doligez wrote:

>
> On Feb 24, 2006, at 17:01, Joaquin Cuenca Abela wrote:
>
>> Expecting the documentation to be beyond flaws or
>> making it right "by definition" also exposes you to
>> problems when it just doesn't follow the intent of the
>> writers.
>
>
> Of course, but when you find a discrepancy, you should file a bug
> report, not assume that the documentation is wrong.


But you see, in this case a member of my team was reading the latest
documentation, and using the latest version. So everything looked
correct to him, but he didn't realize that he was making our code
incompatible with the last ~10 years of OCaml.

In any case, we have worked around it by testing Sys.ocaml_version.
Thanks to everyone who replied for their suggestions.

Is there any reason why Sys.ocaml_version is a string, by the way?
Shouldn't it be some kind of numerical representation to make it easy to
do ordered comparisons?

Thanks all,
Ezra