We need not "assume that somebody uses this formatting". I do it frequently, and I have often seen it in other people's code.That fact that you use it and saw it in other people code means nothing. People often adopt and use bad programming style. Even talented programmers do. Look at classic The Elements of Programming Style, by Brian W. Kernighan and P. J. Plauger. They include such recommendations as ( cited from https://en.wikipedia.org/wiki/The_Elements_of_Programming_Style ) :
The real question is whether the use you advocate represents a good Perl programming style or not.
I would understand the use of post-fix if construct in a loop to specify exit condition. Something like:
return if ($exit_condition);They make code more readable in comparison with the regular if statement and, as such, have certain value and IMHO represent a good programming style.
In many other cases the desire to save two curly braces looks to me a very questionable practice and a bad programming style. Your mileage may vary.
In reply to Re^6: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
by likbez
in thread What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
by likbez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |