Displaying 2 results from an estimated 2 matches for "string_of_".
Did you mean:
  string_of
  
2017 Sep 24
0
Minimum OCaml compiler version
...#39;s the
first one I came up against).
Can we choose a new minimum version?  There are a lot of interesting
features in OCaml that we might want to use, in particular:
 - Make use of Bytes unconditional.  Requires OCaml >= 4.02.
 - PPX extension points could be used to generate repetitive
   string_of_* functions.  (OCaml >= 4.02)
 - ‘match’ can catch exceptions. (OCaml >= 4.02,
   https://blog.janestreet.com/pattern-matching-and-exception-handling-unite/)
 - Record fields and variant constructors can have the same name and
   the compiler sorts out the right struct/type intelligently....
2020 Mar 10
1
Revisiting minimum OCaml version
...causes a bunch of trouble.  To my
mind the major things are:
 - Having to have the "Bytes" compatibility module (added in OCaml 4.02).
 - Conditional on -runtime-variant _pic (added in OCaml 4.03).
 - Not being able to use ppx extension points, which means we have
   lots of repetitive string_of_* functions that could be mostly
   eliminated (needs OCaml >= 4.02).
 - Match + catch (needs OCaml >= 4.02)
   https://blog.janestreet.com/pattern-matching-and-exception-handling-unite/
 - Warnings about "noalloc" (>= 4.03) and "Pervasives" (>= 4.07).
I guess it...