DEV Community

Discussion on: A quick explanation about fast piping (-> and |.) in ReasonML

Collapse
 
ryuheechul profile image
Heechul Ryu

I found something interesting and it's probably a bug.

-> doesn't work after |> when |. still works after |>

proof

Any thoughts?

Collapse
 
mrmurphy profile image
Murphy Randle

Nice find! Thatโ€™s a good question. I sometimes have to end up grouping the left side of -> with parenthesis while throwing |> in the mix. I wonder if thatโ€™s an implementation bug?

Collapse
 
ryuheechul profile image
Heechul Ryu

I think so, sir! I just left an issue for this.

Thread Thread
 
mrmurphy profile image
Murphy Randle

Thanks for doing that!

Collapse
 
ryuheechul profile image
Heechul Ryu

leaving this gist just in case this become unavailable