Skip to content

Optimize handling of catch blocks #856

Closed
@DarkDimius

Description

@DarkDimius

Current code emitted by pattern-matcher is inefficient.
What it currently does is:

try {<code>} 
catch { <cases>}

is compiled as if it this was written:

try {<code>} catch {
  case e => e 
    match {<cases>; case _ => throw e}
  }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions