scala3 icon indicating copy to clipboard operation
scala3 copied to clipboard

End marker for last invocation

Open som-snytt opened this issue 3 years ago • 0 comments

It's natural to rewrite

if b.exists then
  b
else
  x
end if // b.exists (label is not checked against condition)

to

opt orElse {
  x
}
end orElse  // easy to check against method name

som-snytt avatar Sep 18 '22 01:09 som-snytt