The enum construct should automatically generate conversion functions to and from string on JavaScript, but NOT on Solidity, which should work purely with the numerical constants.
Also, we should look into how ReasonML does it, and possibly try to be more compatible with it.
The
enum
construct should automatically generate conversion functions to and from string on JavaScript, but NOT on Solidity, which should work purely with the numerical constants.Also, we should look into how ReasonML does it, and possibly try to be more compatible with it.