[Proposal] generate types directly from csv files
dkuku opened this issue · comments
I saw that the rust library generates the code from the csv directly. I see you have a script for that currently.
You can do this with a macro - this way when there is a new csv file with mappings you only need to replace it in the repo and mark it with @external_resource
.
This is quite popular pattern elixir unicode, ex_cldr, gettext
This is a deliberate decision. I strongly prefer formatted and committed into repo Elixir code that uses macros instead of CSV. I also avoid shipping CSV as a dependency in this case. CSV definitions are still part of the repo, just not required for end user.