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.
Two simple functions…one takes a function and value, the other, a value then function. Now here is where it gets weird. Say I want to pass an anonymous function, and put comments in there. It works fine with bar, and the -> operator:
let_=11->bar(x=> {
lety=100// Do the addition.x+y
})
But the code formatter does weird things using foo:
// This is what I type....// 11->foo(x => {// let y = 100// // Do the addition.// x + y// }, _)// But when the code formatter goes, this is what it "formats" to:let_=11->foo(
x=> {
lety=100x+y
},
// Do the addition._,
)