DEV Community

loading...

Discussion on: Emulating TypeScript union types with ReasonML

Collapse
citizen428 profile image
Michael Kohl

This is something Elixir really nailed with external resources:

oestri.ch/2018/03/elixir-external-...

In short you can link a module to a file, define a macro that will turn the resource's content into code and be done with it. The module gets recompiled if the resource changes.