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 generator expressions from existing array comprehension syntax #15

Closed
wants to merge 1 commit into from

Conversation

@binki
Copy link

binki commented Dec 26, 2016

rendered version

Originally pitched at HaxeFoundation/haxe#5909 .

I think that because Array Comprehension syntax exists it would be
natural to have Generator Expressions with the same syntax. However,
if Haxe implements a yield statement, work on that should probably
supercede consideration of this particular proposal.

Originally pitched at HaxeFoundation/haxe#5909 .

I think that because Array Comprehension syntax exists it would be
natural to have Generator Expressions with the same syntax. However,
if Haxe implements a yield statement, work on that should probably
supercede consideration of this particular proposal.
@Simn
Copy link
Member

Simn commented Jun 1, 2017

This proposals focuses on the syntax of a new feature while neglecting the actual implementation it would require. Lazy evaluation is not something you can just switch on. It requires to think about what code should be generated and in our case this means thinking about all the target generators.

Generators can be implemented based on something like async/await. We are currently considering what exactly we want to support in this regard for Haxe 4. I am thus closing this proposal.

@Simn Simn closed this Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.