Skip to content

Design meeting: RFC 3861 - iter! macro #350

@eholk

Description

@eholk

Summary

This meeting is to review RFC 3861 about adding the iter! macro. The iter! macro creates iterator closures which evaluate to an iterator. Within the body, the yield keyword can be used to give iterator values to the caller. This means the compiler can generate the state machine for you, which is especially useful for iterators with complex state transitions.

I'd like to get the rest of the Lang team's opinion of this and 🤞 start getting checkboxes so we can move towards stabilizing iter!.

Background reading

rust-lang/rfcs#3861

About this issue

This issue corresponds to a lang-team design meeting proposal. It corresponds to a possible topic of discussion that may be scheduled for deeper discussion during one of our design meetings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions