in reply to Re^6: printing unitialized value of the 'do BLOCK' in thread printing unitialized value of the 'do BLOCK'
Thanks for verbose opinion and bug example!
I will disagree that an 'if' should require an explicit return. And for me an 'if' statements are sometimes better than ternary, because an 'if' gives an opportunity to skip the 'else' branch, we can't skip it when using ternary op.
I think that the practice suggested in Intermediate Perl is good, and it goes along with a "don't repeat yourself" principle. And 'given/when' is still an experimental.
(edited)
|