Jordan W
Jordan W
@let-def cannot currently reproduce it, but leaving this open to track it in case anyone comes across something similar.
That particular example already parses with today's Reason parser - we would just need to preserve the indentation in that case (track it in a ppx annotation in the AST)....
@anmonteiro: Because: - In the OCaml braceless case, it has its own pitfalls with dangling else. - In this case, the goal isn't even to reduce braces - the goal...
Do you have any other suggestions for how to respond to people coming from JS that lament the extra indentation in functions that handle a couple simple cases early? This...
In this case they are swapped, so you can use `Notty` with `^`: ``` echo 'let (++) = (a, b) => 0;' | refmt --print ml ``` Outputs: ``` let...
You're right and you can see here which tokens are swapped for which tokens: https://github.com/facebook/reason/blob/dcd42d7b071fa0ae302c1ba959590596fc466ee1/src/reason-parser/reason_syntax_util.ml#L89
I think what we could do is allow prefixing the `++` and many like it with a backslash (or suffixing it with a backslash if that avoids more conflicts) to...
@chenglou I believe that doing ``` rust let result = { somethingWithSideEffects (); 200; }; ``` Will warn if `somethingWithSideEffects ()` doesn't have return type `unit` (with strict-sequence warning enabled)....
I believe `strict-sequence` warning would work at the top level too.
@anmonteiro