Skip to content

Tracking Issue for gen blocks and functions #117078

Open
@oli-obk

Description

@oli-obk

This is a tracking issue for the RFC "#3513" (rust-lang/rfcs#3513).
The feature gate for the issue is #![feature(gen_blocks)].

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Unresolved Questions

  • Whether to implement Iterator directly or, e.g., IntoIterator or IntoGenerator.
  • Whether to do what is needed for self-referential gen blocks prior to stabilization.
  • Whether we should use some keyword other than gen.
  • Whether we should reserve gen as a full keyword or as a contextual one.
  • Whether we should opportunistically implement size_hint.
  • Whether we should implement other traits such as DoubleEndedIterator or ExactSizeIterator.
  • What to do about Rust 2015 and Rust 2018 where k#gen may or may not be workable.

Related issues

Implementation history

Metadata

Metadata

Assignees

Labels

B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-gen_blocks`gen {}` expressions that produce `Iterator`s

Type

No type

Projects

Status

Accepted RFC

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions