Syntax Lookup

Enter some language construct you want to know more about.

-

This is the unified subtraction operator.

Since ReScript 12, - works with int, float, and bigint. The compiler specializes the operator from its operands.

ReScriptJS Output
let intResult = 3 - 2
let floatResult = 3.5 - 2.0

References