‘fun’ is a commonly used keyword to actually declare a function (e.g. Kotlin). Not sure what would be a better keyword but something that makes it clear that it’s related to the ‘switch’ keyword.
the ‘and’ keyword is something I still don’t quite understand. Is it actually necessary?
ALSO:
Would it be possible and/or desirable to have some kind of project configuration (kind of like eslint rules) that allows for different syntax rules to be configured? I believe the reality is that different groups of people have, and in the future will still have, different preferences.
Would it be ok if different flavors of ResonML emerged, maybe one catering to OCaml developers, one catering to JS develoers, etc. If it would be as simple as something like setting eslint rules or babel presets, and then your whole project would be reformatted according to these rules – I think that would be pretty sweet.