DEV Community

Discussion on: OCaml/ReasonML best practice: warnings and errors

Collapse
 
vasco3 profile image
JC

Yawar, I justr tried your recommended warnings and errors. I got dozens of messages like this:

Warning 42: this use of quantityAccessor relies on type-directed disambiguation,
it will not compile with OCaml 4.00 or earlier.

where the code is

let totalPriceAccessor = (inputs: quantityInputType) =>
  inputs.quantityAccessor(inputs) *. inputs.unitPriceAccessor(inputs);

I'm totally lost about what is wrong in this one

Collapse
 
yawaramin profile image
Yawar Amin

Hi! As suggested in Discord I think it's safe to turn it off. Adjust warnings to taste :-) See also discuss.ocaml.org/t/can-warning-42...