The method name my_snake_case
will become my_snake
in JavaScript if you use js_of_ocaml-ppx. This is a documented behavior (see the “Method name and underscore” section of The Js_of_ocaml library) and I usually name my snake cased methods and values some_method_js
so the actual part of the name is preserved.
2 Likes