Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

drop break and continue #44

@soc

Description

@soc

Get rid of those two control-flow keywords. Reasoning:

  • The alternative of using an additional method feels only a slightly bit clunkier to write and vastly easier to read and understand when coming back after a month.
  • The implementation complexity and the mental complexity for users has never been worth the "convenience".
  • There aren't much reasons for break and continue to exist in general – it feels like this is something that got copied from C and keeps getting copied without anyone questioning it much. If break and continue didn't exist today, we wouldn't invent it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dora-divergewill cause substantial diversion from doralanguage-corechanges to the Core language (syntax, semantics, ...)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions