try / catch / throw / finally #14

Merged
probablycorey merged 3 commits from try-catch-throw-finally into main 2025-10-31 17:00:40 +00:00
Owner

JS-style try/catch e/throw e/finally

try:
  throw 'error message'
catch err:
  err
end

Also includes Ruby function-level catch and finally:

fn = do:
  throw 'fn error'
catch e:
  echo 'fn caught'
end
JS-style `try`/`catch e`/`throw e`/`finally` ``` try: throw 'error message' catch err: err end ``` Also includes Ruby function-level `catch` and `finally`: ``` fn = do: throw 'fn error' catch e: echo 'fn caught' end ```
defunkt added 2 commits 2025-10-29 21:50:21 +00:00
defunkt force-pushed try-catch-throw-finally from 0720348a08 to a6261fce7f 2025-10-29 21:51:05 +00:00 Compare
defunkt force-pushed try-catch-throw-finally from a6261fce7f to 9bc514a782 2025-10-29 21:51:57 +00:00 Compare
probablycorey added 1 commit 2025-10-31 16:53:04 +00:00
probablycorey merged commit a99080ba3f into main 2025-10-31 17:00:40 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: probablycorey/shrimp#14
No description provided.