forked from jqlang/jq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add try-catch-finally and fix jqlang#1608
We can't really fix the issues with try-catch syntax, but we can introduce `try` as a function-like syntax, using `try(exp; handler)` in preference to `(try exp catch (handler))`. While we're at it, we can use the new `UNWINDING` opcode to implement try-catch-finally as `try(exp; handler; finally)`.
- Loading branch information
1 parent
480a739
commit e8c874b
Showing
4 changed files
with
1,095 additions
and
1,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.