A very exciting new thing for ReScript - unified operators by @hyeseong.kim !
Unified operators mean that operators (+ - /) can be used with float and bigint as well, not just int.
1.5 + 3.0, 1 - 3, and 1n / 3n all works as you'd expect, no special operators needed.
Massive DX improvement imo.
Unified operators mean that operators (+ - /) can be used with float and bigint as well, not just int.
1.5 + 3.0, 1 - 3, and 1n / 3n all works as you'd expect, no special operators needed.
Massive DX improvement imo.
Comments
This is a big deal because this is often one of the first confusing things newcomers stumble upon when they try ReScript - why can't I do simple maths? Why do I need different operators?
Awesome work by @hyeseong.kim !