Code like this makes me slightly nervous:
let quantity = Some(3);
let price = switch (quantity) {
| Some(quantity) => Some(float_of_int(quantity) *. 5.95)
| None => None
};
Js.log(price);
because I am using the same variable name in the switch as in the Some(...) clause. Is it best practice to use the same name, or to use different names?
