Hi,
I’m using this feature of the language : http://caml.inria.fr/pub/docs/manual-ocaml/extn.html#sec238. Syntax highlighting in integrated IDE doesn’t work well.
example of code :
let cache_result_on ~cache (** mutable structure enabling memoization *) ~checkincache_f:is_present (** function checking value is in cache or not *) ~f (** function that will benefit from memoization *) =
let memo_f cache presentin x =
if (is_present cache) == false
then
begin
cache := f x ; !cache
end
else !cache in
memo_f cache is_present;;
Is there a possibility to improve it ?
Cheers,
Aldrik