but rather the speed with which you indent very, very far.
Agreed. I might not necessarily line up the branches right under the '=' for a very long name, instead I'd probably do a single indent. I also would format the function names similarly to you, although would probably, assuming the $arguments werent too long, do
long_function_name( $argument1,
$argument2, $argument3 );
or possibly
long_function_name( $argument1,
$argument2, $argument3
);
Related to this, and to your comment
Incidentally I'm curious about your C example. According to my rusty memory, C should be fine with either format. A language with semi-optional semicolons (like Ruby or JavaScript) has to be formatted the other way, but I thought C could format either way.
You can format either way, its whitespace tolerant. The issue is that I think C programmers tend to right scan lines for legal tokens, something like the charclass /[(){};,"?:]/ ( Anyway, thats my theory. :-), whereas it looks like you (maybe due to other language experience) are a bit more interested in the start of the line. Even in perl I'd rarely put a comma on the start of a line, although in perl I often put the concatenation dot on the start of the line.
It feels to me that this is a language issue, and that the various subtleties of the language draw people toward certain styles. For instance hungarian notation feels very strange in perl but not at all in C or VB.
---
$world=~s/war/peace/g
|