init
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
Error :: distinct |{
|
||||
failed
|
||||
}
|
||||
|
||||
reversed := 'value'->reverse_chrs
|
||||
sum_text := {1 + 2}->to_str
|
||||
|
||||
continued := 'value'
|
||||
->reverse_chrs
|
||||
->reverse_chrs
|
||||
|
||||
commented := 'value' # an inline comment preserves continuation
|
||||
->reverse_chrs
|
||||
|
||||
computed := 1 + 2
|
||||
->to_str
|
||||
|
||||
fallible: i32 -> i32 ! Error: @ value: i32 { value! }
|
||||
|
||||
propagate: i32 -> i32 ! Error: @ value: i32 {
|
||||
result := {value->fallible}?
|
||||
result!
|
||||
}
|
||||
Reference in New Issue
Block a user