`assert` priority
assert 1 == 2
is parsed as
(assert 1) == 2
Wouldn't it have a better UX if we had one of the following?
- we considered
assertlike a regular function call (assert(1 == 2)) - we change the priority to parse as
assert (1 == 2)
This is a very good idea. I'll look into this. Are you suggesting printing parens as in assert(1 == 2)?
Yeah, I think that'd look more familiar if it looked like a regular function call 🙂
consider assert as a regular function makes more sense to me assert (1==2)
The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.