On Tue, 5 Jun 2001, Hugo wrote:
> I'd also like to see a specification for indentation when breaking long
> lines.
Fwiw, the style that I prefer is:
someFunc( really_long_param_1,
(long_parm2 || parm3),
really_long_other_param
);
or, for really complex expressions:
( really_long_param_1
&& (parm1 || long_parm1)
&& ( yet_another_long_param
&& parm2
&& (long_parm2 || parm3)
)
);
Putting the final close paren on the next line makes it easier to
tell where the (sub)expression finishes.
Dave
- Re: PDD 2nd go: Conventions and Guidelines for Perl Sour... Dave Mitchell
- Re: PDD 2nd go: Conventions and Guidelines for Perl Sour... H . Merijn Brand
- Re: PDD 2nd go: Conventions and Guidelines for Perl Sour... Graham Barr
- Re: PDD 2nd go: Conventions and Guidelines for Perl... H . Merijn Brand
- Re: PDD 2nd go: Conventions and Guidelines for Perl Sour... Dan Sugalski
- Re: PDD 2nd go: Conventions and Guidelines for Perl... H . Merijn Brand
- Re: PDD 2nd go: Conventions and Guidelines for Perl Sour... Jarkko Hietaniemi
- Re: PDD 2nd go: Conventions and Guidelines for Perl Sour... Jarkko Hietaniemi
- Re: PDD 2nd go: Conventions and Guidelines for Perl Sour... Hugo
- Dave Storrs
