Skip to content

local goto #101

Closed
Closed
@StefanKarpinski

Description

@StefanKarpinski

Basically a jmp instruction within a function, much like C's local goto. Requires two pieces of syntax:

  1. labels
  2. goto statements

One issue to keep in mind is that goto might get used anywhere return does, including this:

x = a < b ? -1 :
    a > b ? +1 : goto equal

Also: is there any way we can hack this in with minimal changes using the existing macro syntax?

Metadata

Metadata

Assignees

Labels

speculativeWhether the change will be implemented is speculative

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions