M3 cleanup - markov2/perl5-Mail-Box GitHub Wiki
Since the code was written in 1999-2005, my preferences for coding style has changed a bit. All patches made, for any reason, may contain some generic cleanups as well. Changes you will often see are:
- unfolding: my old convention was strictly shorter than 80 character lines. No-one has such a narrow screen anymore. When it improves the readability, lines get unfolded up to 132 character wide lines.
- my original editor did not use syntax highlighting. To separate documentation and code better visually, I used #------- lines. Now it is felt as too much. Only separates sections and chapters. Also, many blank lines around documentation tags (lines with a leading =) are removed because the Perl parser does not require them anymore.
- do_something() unless $condition will be used when the condition is nearly always false. In most cases, however, $condition or do_something() is used.
- do_something() foreach @list becomes do_something() for @list
- map { simple() } @list becomes map simple(), @list
- grep { simple() } @list becomes grep simple(), @list
- change multi-line ... ? ... : ... style.
- for indentation, characters on the next line always start on position 4.