Skip to content

Loop constructs without parens #728

Closed

Description

@brson

Now that we have if and alts without parens I find myself wanting to write loops without them as well. Is this possible?

Activity

  1. marijnh commented on Jul 22, 2011

    @marijnh
    Contributor

    the only tricky thing is that 'each' would no longer be a valid typename, I think

  2. graydon commented on Jul 22, 2011

    @graydon
    Contributor

    yeah. 'for' and 'for each' are, I hope, going to unify into 'for'-that-means-iterator-call. that is, we'll make for mean what for each means now, and remove the linear-for-loop specialization.

  3. marijnh commented on Jul 28, 2011

    @marijnh
    Contributor

    This has been implemented as part of the recent syntax overhaul.

  4. added a commit that references this issue on Dec 12, 2017
  5. added a commit that references this issue on Apr 23, 2020
  6. added a commit that references this issue on Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions