3 ms·
Does ReasonML have ML's nice module/functor system? That would be a huge advantage over elm.
by maxiepoo 8y ago
Does ReasonML have ML's nice module/functor system? That would be a huge advantage over elm.
- tonyhb 8y agoYes it does. I had to build an autocomplete functor which generates an Autocomplete component for arbitrary types when I used ReasonML for my personal budgeting app.
- zodiac 8y agodo you happen to have code online?
- tonyhb 8y agoI just pushed to github. Here's the functor: https://github.com/tonyhb/reasonable-native-budget/blob/master/re/Shared/Form.re#L385 https://github.com/tonyhb/reasonable-native-budget/blob/mast... Here's the functor being applied: https://github.com/tonyhb/reasonable-native-budget/blob/1f694c7fa173fde7588ef8a2cb74b9a156b00497/re/NewEntry/NewExpense.re#L19 https://github.com/tonyhb/reasonable-native-budget/blob/1f69... Caveats: haven't committed some time and it was my first ReasonML/React Native app.