Say we have the following:
let buf = Buffer.create 16
Then we mistakenly do:
ignore (Buffer.add_string b)
We rightfully get a warning:
Warning 5: this function application is partial,
maybe some arguments are missing.
But if we mistakenly do:
Buffer.add_string b |> ignore
There’s no warning. Is this to be expected? Should it be considered as a bug? And would it be fixed by the recent work that typechecks |>
in the same way as normal function application?