Skip to content

Type aliasing on a generic function definition #1315

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

You must be logged in to vote

One quick thing you can do is to replace your Either<Error, *> with Fin<*>. The Fin type is essentially a built-in alias for Either<Error, *>

You can convert between them using ToFin() and ToEither()

I've never really found typed delegates to help that much with readability.

You could consider 'global using' which allows for project-wide aliases?

Replies: 1 comment 1 reply

Comment options

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

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