Georgii Dolzhykov

Results 311 comments of Georgii Dolzhykov

see also the discussion in https://github.com/prettier/prettier/pull/8526

@tats-u Please read the discussion. This behavior simply should be disabled for `--prose-wrap preserve` (which is the default value, BTW). Whitespace should be kept as is in that case because...

> Is it true that this behavior and change whitespace mean the currently problematic behavior (adding extra spaces around Chinese and Japanese letters)? Right. By "this behavior" I mean splitting...

related: #4424 (Support library-specific plugin)

Closure Compiler has a syntax for this: https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler#function-new-type And TypeScript / VS Code even understands it.

@bradzacher I mean the result of parsing these two expressions is different whereas e.g. for `a + b + c` and `(a + b) + c` it is not. ```json...

This is not really about precedence or commutativity (associativity probably?). Rather about short-circuiting. Because it's short-circuiting that makes these two expressions equivalent. Note that `a + (b + c)` isn't...

``` '1'+(2+3) "15" '1'+2+3 "123" (1 + 1e100) + -1e100 0 1 + (1e100 + -1e100) 1 ```

The issue is about short-circuit operators: `||`, `&&`, `??`, not about `+`.