Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.uu.net (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: default associative array sort function Message-ID: <1991May16.010710.21615@uunet.uu.net> Date: 16 May 91 01:07:10 GMT References: <1991May14.045945.11077@uvaarpa.Virginia.EDU> <1991May14.100517.406@convex.com> Organization: UUNET Communications Services, Falls Church, VA Lines: 19 tchrist@convex.COM (Tom Christiansen) writes: ?I have in the past suggested that sort functions be allowed to be ?anonymous functions declared in-line, like this: ? ? @x = sort { $b <=> $a; } @y; ? ?Larry has expressed reticence to this idea in the past for several reasons: ?difficulty of implementation, possible obscurity for long sort functions, ?and finally because he thinks it ok to make people name their abstractions. I can see him now: "Nah, too much like LISP" :-) ?Someday if you'd like, I'll show you my routines ... I show you mine if you show me yours :-) -- [rbj@uunet 1] stty sane unknown mode: sane