Skip to content

Allow Chaining #3

Description

@johnnywey

Often, subsequent operations depend on the preceding ones succeeding. Rather than a bunch of nested match statements, it'd be cool to somehow define a flow for success.

e.g. convert this to something better:

match Succeeded("result_1") on {
  success {
    match Succeeded(it) on {
       success {
         println "Something worked a lot!"
       }
     }
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions