-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Support a finally branch that runs after every possible branch. Perhaps not running after else?
var hidden = false
var opacity = 0.0
nudge-opacity = match ->
up? -> opacity += 0.1
down? -> opacity -= 0.1
finally -> if opacity == 0.0: hidden = true
A return value could be handled in two ways (not sure how easy either route would be to implement):
- Via an argument prior to the match's
->operator:finally rval -> ... - Via the body of the branch (optionally) being a function:
finally -> rval -> ...
This was discussed on gitter at one point and I just remembered it and wanted to get it logged.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels