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

Support list.map(), list.foreach(), etc #368

Open
skiars opened this issue Oct 8, 2023 · 1 comment
Open

Support list.map(), list.foreach(), etc #368

skiars opened this issue Oct 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@skiars
Copy link
Member

skiars commented Oct 8, 2023

JavaScript and python have similar APIs, maybe we can consider it? This should be simple.

@skiars skiars added the enhancement New feature or request label Oct 8, 2023
@s-hadinger
Copy link
Contributor

They would be simple indeed, even in plain Berry code. However I'm not convinced they would be so useful in the core language. Functional programming in not so intuitive to the regular Berry developer. Said differently, I didn't use such functions in Tasmota.

The one thing that would be awesome if "list comprehension" like in Python. But I'm afraid it's a massive change to the Berry compiler, and maybe not worth it.

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