The intent is to print every line entered at the console until a blank line is entered.
so, you could exit isn't it ?
or you could decide to continue with something else to do and in that case , you're right a last is better suited, but that was not the purpose. my code was from a one-liner test