Skip to content

Redefine the (|>) operator in a way to reveal passed types #897

Closed

Description

@pkese

When hovering over an |> operator with mouse cursor, I see the following information (in VSCode)

image

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

image

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

  1. Krzysztof-Cieslak commented on Mar 8, 2019

    @Krzysztof-Cieslak
    Contributor

    Hey @7sharp9, is it connected to #896 ? (or the other things we've discussed on Slack)

  2. 7sharp9 commented on Mar 9, 2019

    @7sharp9
    Member

    Yes I think its connected @Krzysztof-Cieslak the types are not calculated for all operators properly.

  3. pkese commented on Jan 29, 2020

    @pkese
    Author

    Apparent'y this had been fixed in FCS in the meanwhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions