Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Why does the "pipe" operator have a higher precedence?

$
0
0
// This does not compile because `->` has a higher precedence than `+`.
let foo = 3 + 4 -> Int.toString

What was the rationale behind this choice of precedence? Really curious. The low precedence pipe is a very powerful tool to simplify complex transforms.


Viewing all articles
Browse latest Browse all 2592

Trending Articles