Skip to content

Commit fbb4a52

Browse files
committed
Update CHANGELOG
1 parent 46eba0e commit fbb4a52

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- Fix: do not warn for "editor" field in `rescript.json`. https://github.com/rescript-lang/rescript/pull/8084
2727
- Fix `@val` shadowing (rewrite using `globalThis`). https://github.com/rescript-lang/rescript/pull/8098
2828
- Fix `@scope` shadowing (rewrite using `globalThis`). https://github.com/rescript-lang/rescript/pull/8100
29+
- Formatter: normalize underscore placeholders in pipe expressions to canonical form (e.g., `a->map2(_, fn)` formats to `a->map2(fn)`). https://github.com/rescript-lang/rescript/pull/8033
2930

3031
#### :memo: Documentation
3132

compiler/syntax/src/res_parsetree_viewer.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ let rewrite_underscore_apply expr =
142142
| _ -> expr
143143

144144
(* For pipe RHS: (__x) => f(__x, a, b) -----> f(a, b)
145+
Note: Ppat_var "__x" and Pexp_ident "__x" represent `_` placeholders in user code.
145146
Omits the first __x argument only if it's the sole occurrence.
146147
If multiple __x exist (e.g., f(__x, __x, b)), keeps all to preserve semantics. *)
147148
let rewrite_underscore_apply_in_pipe expr =

0 commit comments

Comments
 (0)