Since ReScript 12, - works with int, float, and bigint. The compiler specializes the operator from its operands.
-
int
float
bigint
let intResult = 3 - 2 let floatResult = 3.5 - 2.0
Primitive Types