I have written up a proposed API and added basic documentation to it.
This API changes the format functions as discussed above, and adds Cldr.Format.Options and Cldr.Format.OptionsBuilder. The options themselves are record types with default records available, so people can use the record update syntax if they want. There is also the OptionsBuilder module for those who prefer to stick with the helper functions. Both options are fully type-safe; people can use whichever they find most convenient.
What do you think of this API?
- I would enjoy using this API if it were released like this. Ship it.
- It is mostly good, but I have constructive criticism.
- I see a major problem, which I will explain.
- Other. My thoughts cannot be contained by your poll!
0 voters