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

Re^4: Prototype like sort()?

by LanX (Cardinal)
on Feb 05, 2018 at 08:40 UTC ( #1208465=note: print w/replies, xml ) Need Help??


in reply to Re^3: Prototype like sort()?
in thread Prototype like sort()?

Actually, as long as we are only talking about two variants, it's more sensical to just define a second rankby .

IMHO a module with many sort like functions would profit from a specialized by .

> But it's too "magical" for my taste.

In context of my DSL mediators I've already put some efforts into investigating possible pitfalls and found very good solutions.

Please note that most other solutions come with ugly edge cases which are excluded here.

There is a performance penalty though ...

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^5: Prototype like sort()?
by perlancar (Friar) on Feb 05, 2018 at 10:15 UTC

    I invite you to create a fork that employs this interface, and let's see which interface users like more (we'll have to wait for some time though ;-).

    You are also welcome to send me a pull request, although I cannot promise that I'll accept it.

      Nah, I'm more interested in general design strategies, sorry! :)

      Besides, I can't find your project.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1208465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2021-01-27 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?