develooper Front page | perl.perl5.porters | Postings from June 2018

Re: [perl #132142] Bleadperl v5.27.3-34-gf6107ca24b breaksMLEHMANN/AnyEvent-HTTP-2.23.tar.gz

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
June 27, 2018 08:09
Subject:
Re: [perl #132142] Bleadperl v5.27.3-34-gf6107ca24b breaksMLEHMANN/AnyEvent-HTTP-2.23.tar.gz
Message ID:
22884_1530086972_5B33463B_22884_205_1_20180627075448.GS2753@iabyn.com
On Wed, Jun 27, 2018 at 08:21:43AM +0200, Andreas Koenig wrote:
> >>>>> On Mon, 25 Jun 2018 01:15:33 -0700, "Dave Mitchell via RT" <perlbug-followup@perl.org> said:
> 
>   > On Sun, Jun 24, 2018 at 11:34:30AM +0200, Andreas Koenig wrote:
> 
> In your previous posting you asked me "in what way do you feel that the
> provided links help in improving fairness". In my response I asked you 4
> questions. I would be interesting what your answers to the four
> questions are. And why did they not help you to argue it both ways?

> Ask yourself what in-place-sort means and answer the following
> questions:
> 
> - does an in-place-sort change any element within the array?
> - is an in-place-sort conceptually an assignment?
> - did the as per 2004-02-20 committed solution provide an in-place-sort
>   disguised as an assignment?
> > - was it clever to provide an in-place-sort disguised as an assignement?
> 
> My tentative answers:
> 
> - no
> - no
> - yes
> - probably not

There is ambiguity in the term 'in-place' - it can either refer to
something at the user level, or to describe an internal optimisation.

If the phrase 'in-place' was being used to describe a user-level feature,
then my answers would be:

    no
    no
    no
    no

If the phrase 'in-place' was being used to describe the implementation
details of an optimisation, then

    yes
    yes
    no
    N/A

NB I am of the firm opinion that the 2004-02-20 commit was entirely
related to the second interpretation.

Here's a question for you. What in the documentation for sort, might lead
a reasonable programmer to assume that @a = sort @a is intended behave
specially and (amongst other things), not strengthen weak references?

-- 
Diplomacy is telling someone to go to hell in such a way that they'll
look forward to the trip

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About