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

More polymorphism in snapshot etc. #24

Open
dakom opened this issue Sep 16, 2018 · 1 comment
Open

More polymorphism in snapshot etc. #24

dakom opened this issue Sep 16, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@dakom
Copy link
Collaborator

dakom commented Sep 16, 2018

Currently, functions like snapshot allow passing in any type of Cell (i.e. CellLoop, CellSink, ...)

However, they must all be the same type right now. Need to change the signatures so that each kind gets its own type variable (e.g. SodiumCell celA, SodiumCell celB)

This isn't a showstopper since one can always use toCell to convert it

@dakom dakom added the enhancement New feature or request label Sep 16, 2018
@clinuxrulz
Copy link
Collaborator

clinuxrulz commented Sep 18, 2018

Sort of feels like implementing inheritance, and doing it the OO way. Which there is nothing wrong with in a FP language, it give convenience to the end user.

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

No branches or pull requests

2 participants