Y
Hacker News
new
|
ask
|
show
|
jobs
by
adrianmsmith
818 days ago
Yeah I did notice in the examples
fac: fn { x } { either x = 1 { 1 } { x * fac x - 1 } } ; function that calculates factorial
So presumably "either" is the "if" expression.
1 comments
anamexis
818 days ago
"if" is the "if" expression -
https://ryelang.org/meet_rye/basics/if_either/
link
acjohnson55
818 days ago
Yeah, but "either" is the if-else construct, so the person you replied to isn't really wrong.
link