DEV Community


Discussion on: Emulating TypeScript union types with ReasonML

citizen428 profile image
Michael Kohl

This is something Elixir really nailed with external resources:

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.