rescript-lang.org icon indicating copy to clipboard operation
rescript-lang.org copied to clipboard

Document %ffi

Open fhammerschmidt opened this issue 6 months ago • 1 comments

  • [ ] Add it to syntax lookup
  • [ ] Adapt https://rescript-lang.org/docs/manual/v12.0.0/embed-raw-javascript to use %ffi instead of %raw

fhammerschmidt avatar Jun 13 '25 13:06 fhammerschmidt

The only difference between %raw and %ffi is that with %ffi the arity is checked, so it is safer and should be preferred over raw.

See error in playground.

fhammerschmidt avatar Oct 01 '25 09:10 fhammerschmidt