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

Simplify Store Boilerplate #2

Open
sleexyz opened this issue Jan 22, 2018 · 1 comment
Open

Simplify Store Boilerplate #2

sleexyz opened this issue Jan 22, 2018 · 1 comment

Comments

@sleexyz
Copy link
Owner

sleexyz commented Jan 22, 2018

Right now we require that a whole block of text be copy and pasted and search/replaced.

Perhaps we can try faking ML modules by having fields of classes that are themselves first-class classes that are closed over type variables.

@sleexyz
Copy link
Owner Author

sleexyz commented Jan 25, 2018

The tricky part is partially applying type parameters to resulting classes, i.e. applying the Store type variable to an Action (A => Store => B, but leaving A and B generic.

We should just annotate actions inline then, or recommend that people put a additional type alias in their efx.js file.

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