3 ms·
Generally speaking, I am pretty happy with the (small) syntax changes from Reason to Rescript [1]. No necessary semi-colon, arrays, object declaration & access.
by globuous 6y ago
Generally speaking, I am pretty happy with the (small) syntax changes from Reason to Rescript [1]. No necessary semi-colon, arrays, object declaration & access. We can finally pattern match on arrays [2] which I think was not possible with Reason (only lists were).
However, there are no custom infix operator with Rescript [1], which is quite sad as it makes monadic code cleaner, whereas they were supported by ReasonML.
[1] https://rescript-lang.org/docs/manual/latest/migrate-from-bucklescript-reason https://rescript-lang.org/docs/manual/latest/migrate-from-bu...
[2] https://rescript-lang.org/docs/manual/latest/pattern-matching-destructuring#match-on-array https://rescript-lang.org/docs/manual/latest/pattern-matchin...