jaredramirez / border-types

A tool to keep you types in syncs across your stack
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

How to determine what types to generate? #2

Closed jaredramirez closed 6 years ago

jaredramirez commented 6 years ago

This is a continuation of https://discourse.elm-lang.org/t/generating-border-types/722

Basically we are not sure if we want to generate types from format (YAML, JSON, etc) that defines them, or generate them from an Elm program that exposes ports.

My preference is using something like YAML or JSON, for a few reason:

jaredramirez commented 6 years ago

After thinking about it, I think the best approach is using a separate system to define & generate types from. My reasoning is what I've mentioned above, plus the fact that I think it will keep the process simpler for people interested in using this tool by eliminating some of the "magic" going on behind the scenes.

mrmurphy commented 6 years ago

Agreed!