I\'m pretty sure I saw someone do a shortcut technique like the code below (which doesn\'t work)
return case guess when guess > @answer then :high whe
Picking up on @mu's first comment on the question (an approach that looks fine to me), you could of course also write that as:
return case (guess <=> @answer) when -1 then :low when 0 then :correct when 1 then :high end
or
... else :high end