In this simplistic case, I agree that assigning th...
# getting-started
j
In this simplistic case, I agree that assigning the message to print to a String variable and print it outside of the when is more elegant. But I think there are cases when you don’t need to return anything, and just have side effects.