Subject: | alignment of // |
Date: | Tue, 4 Sep 2018 05:11:22 +0000 |
To: | "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org> |
From: | "Wardman, Michael" <Michael.Wardman [...] Dellteam.com> |
Hi. Thanks for the great module :)
Is it possible (and desirable for everyone) to align "or" and "//" together
For example:
my $to = $arg_ref->{to} // croak Dump($arg_ref);
my $from = $arg_ref->{from} // croak Dump($arg_ref);
my $cc = $arg_ref->{cc} // $EMPTY;
my $subject = $arg_ref->{subject} // 'No subject';
tidies to:
my $to = $arg_ref->{to} // croak Dump($arg_ref);
my $from = $arg_ref->{from} // croak Dump($arg_ref);
my $cc = $arg_ref->{cc} // $EMPTY;
my $subject = $arg_ref->{subject} // 'No subject';
not as tidy in my opinion :)
I often use "or", "||", and "//" on such structures and prefer them all aligned regardless. "or" works fine but not "//"
Thanks :)