blob: 68d6cc2106ddb3d39503a95a9d31f8290ca718ca (
plain)
1
2
3
4
5
6
|
(import "core/common")
(import "core/result")
; calls read-file! and wraps the result in a Result/ok on success
; in case of error, calls Result/ex on the error string
(try! Result/ex (. Result/ok read-file!) "does-not-exist.txt")
|