Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 127035
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: Michael.Wardman [...] Dellteam.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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 :)
Subject: Re: [rt.cpan.org #127035] alignment of //
Date: Tue, 4 Sep 2018 07:01:58 -0700
To: bug-Perl-Tidy [...] rt.cpan.org
From: Steven Hancock <s7078hancock [...] gmail.com>
Previous version of perltidy did that, but I deactivated it because it was occasionally interfering with other aligments. I hope to be able to reactivate it soon. Thanks, Steve On Mon, Sep 3, 2018 at 10:13 PM Wardman, Michael via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Tue Sep 04 01:13:21 2018: Request 127035 was acted upon. > Transaction: Ticket created by Michael.Wardman@Dellteam.com > Queue: Perl-Tidy > Subject: alignment of // > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: Michael.Wardman@Dellteam.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=127035 > > > > 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 :) > > >
Subject: RE: [rt.cpan.org #127035] alignment of //
Date: Tue, 4 Sep 2018 23:38:55 +0000
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: "Wardman, Michael" <Michael.Wardman [...] Dellteam.com>
Yeah, I thought it did :) Thanks for the reply! Show quoted text
-----Original Message----- From: Steven Hancock via RT [mailto:bug-Perl-Tidy@rt.cpan.org] Sent: Wednesday, 5 September 2018 12:03 AM To: Wardman, Michael Subject: Re: [rt.cpan.org #127035] alignment of // <URL: https://rt.cpan.org/Ticket/Display.html?id=127035 > Previous version of perltidy did that, but I deactivated it because it was occasionally interfering with other aligments. I hope to be able to reactivate it soon. Thanks, Steve On Mon, Sep 3, 2018 at 10:13 PM Wardman, Michael via RT < bug-Perl-Tidy@rt.cpan.org> wrote:
> Tue Sep 04 01:13:21 2018: Request 127035 was acted upon. > Transaction: Ticket created by Michael.Wardman@Dellteam.com > Queue: Perl-Tidy > Subject: alignment of // > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: Michael.Wardman@Dellteam.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=127035 > > > > 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 :) > > >
This is fixed in perltidy version 20181117.