Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explanation of Effect in the trait #775

Open
kbeldjilali opened this issue Jul 4, 2023 · 0 comments
Open

Explanation of Effect in the trait #775

kbeldjilali opened this issue Jul 4, 2023 · 0 comments

Comments

@kbeldjilali
Copy link

Hi,

I don 't understand the choice to have F[_] at the trait level. Of course, it's easier to implement but the goal of a library is to introduce complexity on the library side, not on the user side.
This introduction breaks backward compatibility and is less flexible at usage.

Having the F[_] on each method means = 1 instance, multiple usages (just pass the right effect). It allows to have a different effect on test for example, just by changing the implicit. Or in a codebase that is not full IO yet.

Having the F[_] at the trait level means = multiple instances for each usage. Or conversion of the effect.

Please, can you give some explanations for this choice?

(related to #417 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant