in reply to How would you indent this?
I don't think I've ever seen a style where a { on its own line isn't matched by a } on its own line. The code you posted is very jarring. At a glance, I would suspect improper indentation or a missing closing braces. You're reader's first impression shouldn't be that it's broken code.
I'd use this:
my @headings = ( { key => 'k', name => 'Kanji', class => 'kanji' }, { key => 'skip', name => 'SKIP', class => 'skip-code' }, { key => 'co', name => 'Suggestion', class => 'skip-code' }, { key => 'disc', name => 'Discussion' }, );
The idea is to make the differences between the lines stand out.
Seeking work! You can reach me at ikegami@adaelis.com
|
|---|