Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: RFC: Should join subsume reduce?

by Sec (Scribe)
on Feb 23, 2006 at 10:24 UTC ( #532237=note: print w/replies, xml ) Need Help??


in reply to RFC: Should join subsume reduce?

As all the others seem to think this is a bad idea, I will voice my opinion that I think it is a good idea. It does not break existing code. It is similar enough that to me it seems logical that join should support more complex operations than only the simplest case. And finally i think that it would be great to have such functionality in base perl without installing yet another module.

Replies are listed 'Best First'.
Re^2: RFC: Should join subsume reduce?
by demerphq (Chancellor) on Feb 23, 2006 at 12:15 UTC

    And finally i think that it would be great to have such functionality in base perl without installing yet another module.

    Just so you know this argument is a no-op. List::Util has been in core as of 5.8.x.

    ---
    $world=~s/war/peace/g

      In fact, the argument is not just a no-op, it contradicts the sentiment: List::Util has been in core since 5.7.3 (to be precise), whereas this newfangled join would only appear in some future version of Perl – so if you wanted broader coverage, you’d use reduce anyway.

      Makeshifts last the longest.

        That's effectively an argument against adding any new features. Anybody who wanted broader coverage won't use, for example, the defined-or family of new features. Is it your position that there should be no new features added to Perl5?

        Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://532237]
help
Chatterbox?
[1nickt]: Ah, you got Linus' fave? With Ubuntu? 4k display?
[1nickt]: ( The 17" monster I just bought is for my wife, who doesn;t leave the house with it...)
[Corion]: 1nickt: No, I'm using it with Windows 10, but with the 4k display, yes. It's a very nice build IMO, and relatively sturdy. Also, it got 8 or 9 on the ifixit repair scale, which I consider good
[Corion]: ... especially as I expect to have to replace the battery set in two or three years' time
[1nickt]: Nice. So happy that Dells are still user-repairable. Unusual these days.
[1nickt]: I will certainly not be buying any more Macs.
[Corion]: 1nickt: Yeah, or at least, I hopoe so ;)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2017-03-27 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.