aboutsummaryrefslogtreecommitdiff
path: root/test/optionals.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-16 16:06:19 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-16 16:06:19 -0400
commitde49bc5bb3198f450cb367085f9def0d89782258 (patch)
treea81354271bd3de567a7656807416cd5c69e4b08b /test/optionals.tm
parent821bde156c222c7384c67517d773dc14a03342e7 (diff)
Deprecate :or_else()/:or_fail()/:or_exit() in favor of the `or` operator
Diffstat (limited to 'test/optionals.tm')
-rw-r--r--test/optionals.tm8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/optionals.tm b/test/optionals.tm
index 05008e20..2c87d6c9 100644
--- a/test/optionals.tm
+++ b/test/optionals.tm
@@ -83,16 +83,16 @@ func main():
5
= 5? : Int?
- >> (5?):or_else(-1)
+ >> 5? or -1
= 5 : Int
- >> (5?):or_fail()
+ >> 5? or fail("Non-null is falsey")
= 5 : Int
- >> (5?):or_exit()
+ >> 5? or exit("Non-null is falsey")
= 5 : Int
- >> (!Int):or_else(-1)
+ >> (!Int) or -1
= -1 : Int
do: