Hacker News new | ask | show | jobs
by wuschel 1776 days ago
Hi Bartek, thanks for jumping in.

I am wondering whether one could forego Typescript and use one of the Ocaml/F# to JS converters for the frontend and backend code. Would it even make sense, and would it be convenient to use? How would one set up such a project?

3 comments

+1 for Ocaml/F# and also the new ReScript. Would you be open to support these on Deno?
If the tooling you're describing outputs JS sources there's nothing preventing you from using it. Currently there's no way to hook them up directly into Deno, so you'd have to resort to separate build step (via some kind of script, I presume this is just a matter of calling appropriate binary).

If those tools help you write better code and you prefer to code in Ocaml/F# then it definitely makes sense, but of course this is personal preference.

Drop by at our Discord server [0] to get some tips on how to set up such project.

[0] https://discord.gg/deno

I think you might be interested in this open issue about public API for compiler.

https://github.com/denoland/deno/issues/1739