Add a try
reserved word
#109
Labels
No Label
accepted
bug
clj
documentation
enhancement
errors
infrastructure
later
next
now
optimization
proposal
question
research
semantics
syntax
ux
vm
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#109
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
try
is like the propagation/?
operator in Rust:Given a result tuple, it either evaluates to the
(:ok, value)
in a success, or returns early with an(:err, msg)
tuple.Easy enough! (And it does this not at the function level but at the block level.)
One question is what it should do if it doesn't get a tuple. Two options:
panic!
or return that value.