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

Add foreach to lists #6

Open
unsegnor opened this issue Jun 20, 2019 · 1 comment
Open

Add foreach to lists #6

unsegnor opened this issue Jun 20, 2019 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@unsegnor
Copy link
Owner

Examples:
I want to execute a function for each room in my house
I would like to write "house.forEach('rooms', function(){...})"

Rules:
Allow executing functions for each element in a list property

Doubts:

Developer Notes:
This will let us improve the performance by loading just the elements to be used, caching... in the state implementation.

@unsegnor unsegnor added enhancement New feature or request question Further information is requested labels Jun 20, 2019
@unsegnor
Copy link
Owner Author

Adding foreach as a class will let us test it exhaustively and also test their use. So reducing tests and increasing coverage. It also could allow us to save the loop state so that we could restart the application after a non planned reboot.

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

No branches or pull requests

1 participant