Skip to content

User land polyfill c stub in OCaml syntax #3629

Closed
@bobzhang

Description

@bobzhang

The current way of polyfill C stubs in js syntax is as below

require('bs-platform/lib/js/caml_external_polyfill.js').register('caml_fancy_add',function(x,y){
  return + ((""+x ) + (""+y))
})

we may allow user to polyfill it in OCaml as well, suggested syntax is

[%register "caml_fancy_add", fun x y -> x + y ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleOld issues that went stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions