With #
replacing the backtick for polymorphic variants I wonder how will the following translate to the new syntax?
type nums = [ | `one | `two | `three];
type alphas = [ | `a | `b | `c];
type alphanums = [ nums | alphas ];
let a = `a;
switch(a) {
| #alphas => Js.log("alphas")
| #nums => Js.log("nums")
};
My assumption is backticks were replace with #
to allow for backticks to be used for multiline strings. I’m not arguing with the switch, just wondering how to deal with the scenarios like the one above