You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
357 B

"Is io strongly typed? " print
try(
1 + "one"
"no" println
) catch (
"yes" println
)
isTruthy := method(x, if(x, true, false))
"Is 0 truthy or falsy? #{isTruthy(0)}" interpolate println
"Is nil truthy or falsy? #{isTruthy(nil)}" interpolate println
# Triple quote to avoid escaping
"""Is "" truthy or falsy? #{isTruthy("")}""" interpolate println