Y
Hacker News
new
|
ask
|
show
|
jobs
by
rimantas
3821 days ago
Yes. And if all your code is composed of three-lines methods, then ok. Otherwise guard is extremely usefull, because unlike 'if' it leaves your constant/variable accessible outside the guard scope.