Hacker News new | past | comments | ask | show | jobs | submit login

Can bucklescript compile OCaml into js?

Yes that is what it was designed to do. Of course if your code calls out to some library implemented in native you will need to substitute with the js equivalent. Bucklescript has special syntax for you to describe the FFI to js, like Typescript. Otherwise it is OCaml in classical syntax or in Reason.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact