Skip to content

Is it possible to leverage type inference better? #1395

Answered by louthy
Jacoby6000 asked this question in Q&A
Discussion options

You must be logged in to vote

In terms of type-inference, I covered a similar question yesterday, which should give some context.

A few side-notes:

  • I see you're using Prelude.Right, you should use the static-using: using static LanguageExt.Prelude, then you can just write Right.
  • Expression-bodied members also means you can avoid the curly-braces and return pattern

In terms of going to v5, yes, I would advise that for anyone starting with language-ext. There are a few outstanding issues, but they're listed on the issues page and quite small overall. The only only issue you might have with v5 are:

  • Missing functionality - just shout if you notice anything obvious and I'll look into it
  • Changes to the API as everything …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Jacoby6000
Comment options

Answer selected by Jacoby6000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants