bucklescript.github.io icon indicating copy to clipboard operation
bucklescript.github.io copied to clipboard

Doc change to make FFI bindings easier to learn

Open desmond-dsouza opened this issue 7 years ago • 0 comments

Currently the FFI docs do not show the generated Javascript, which leaves the reader guessing and makes bindings more difficult to learn. It would help if each FFI binding construct consistently had:

  • bs / reason syntax including usage of the binding
  • corresponding generated or equivalent javascript

(you might even put the generated js first, since that is the reader's initial intent)

Example borrowed from Glennsl's cheatsheet

image

desmond-dsouza avatar Jul 07 '18 17:07 desmond-dsouza