You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Remove printing of arrow functions with "multiple" dots (#668)
* Remove printing of arrow functions with "multiple" dots
Arrow functions with multiple dots `(. a, . b) => a + b` are considered an anti-pattern.
This syntax *will be removed* in the future. As a first step, the printer will know print this as multiple arrow functions. (Like in JavaScript)
**Before**
```rescript
let f = (. a, . b) => a + b
type f = (. int, . int) => int
```
**After**
```rescript
let f = (. a) => (. b) => a + b
type f = (. int) => (. int) => int
```
* Remove processing of "res.async" in `arrowType`.
Type expressions can't use the "async" keyword.
* Add Changelog entry for consecutive arrow function printing
Co-authored-by: Maxim <[email protected]>
0 commit comments