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 }}
Repository navigation
Redefine the (|>) operator in a way to reveal passed types #897
When hovering over an |> operator with mouse cursor, I see the following information (in VSCode)
Notice that there is no information about the generic types that are involved.
If i redefine the |> operator as just
let(|>)arg func = func arg
..then when hovering over the opearator the same way, I get to see also the types that are involved
In terms of usability, seeing type information is an improvement, because in longer chains of |> workflows, it is sometimes hard to know what type is being passed around in each step. It would be nice if this was the default.
Please make the compiler service reveal inferred type wherever possible.
A starter solution would be to just replace the definition of operator definitions in the way as described above.
Activity
Krzysztof-Cieslak commentedon Mar 8, 2019
Hey @7sharp9, is it connected to #896 ? (or the other things we've discussed on Slack)
7sharp9 commentedon Mar 9, 2019
Yes I think its connected @Krzysztof-Cieslak the types are not calculated for all operators properly.
pkese commentedon Jan 29, 2020
Apparent'y this had been fixed in FCS in the meanwhile.