Re: Perl culture, perl readabillity

2001-03-27 Thread Dan Brian
> Uh, have you followed this thread? It's nothing but another perlbashing > session by a verbosity monger who can't handle $. Well, you can bash him back in perl6, or continue the conversation on advocacy. Up to you. > Excuse me, but why would you send a perlbasher to the perl advocacy > list. I

Re: Perl culture, perl readabillity

2001-03-27 Thread David Grove
> OK, before this *completely* heads into the direction of advocacy, which > it's dangerous close to anyway, you need to qualify that. Uh, have you followed this thread? It's nothing but another perlbashing session by a verbosity monger who can't handle $.

Re: Schwartzian Transform

2001-03-27 Thread indigo
Simon Cozens wrote: > On Mon, Mar 26, 2001 at 04:36:35PM -0500, Uri Guttman wrote: > >> SC> Do you see any ESP there? Do you see any parsing of arbitrary >> SC> pieces of code? No, me neither. >> >> and even creating a function to extract the key is not for beginners in >> many case. most o

Re: Perl culture, perl readabillity

2001-03-27 Thread Dan Brian
I think Simon meant '[EMAIL PROTECTED]', but isn't interested enough to correct himself. :)

Re: Perl culture, perl readabillity

2001-03-27 Thread Simon Cozens
On Tue, Mar 27, 2001 at 11:33:18PM +0200, Otto Wyss wrote: > Could you imaging being the leader of a 10 people project where > everybody design and codes in their own unique manner? No, which is why in *those* situations, you have house rules. I don't think Perl stops you doing that. It just does

Re: Perl culture, perl readabillity

2001-03-27 Thread Otto Wyss
> Please CC Otto in all replies concerning this topic. I want to make sure he > reads how wrong he is about Perl and its readability and I think Simon sums it > up perfectly here. > Thank you very much for the CC and including Simon's message at the end. > I also want to add that all of those s

Re: Schwartzian Transform

2001-03-27 Thread Peter Buckingham
please ignore my previous message. i think that my mind was trapped in an alternate dimension :) peter Peter Buckingham wrote: > > James Mastros wrote: > > > [..] > > > > f("+123,456")=123456 > > f(f("+123,456))=123456 > > > > The functon is not idempotent. Even if you checked f(x)==x (functio

Re: Schwartzian Transform

2001-03-27 Thread Peter Buckingham
James Mastros wrote: > [..] > > f("+123,456")=123456 > f(f("+123,456))=123456 > > The functon is not idempotent. Even if you checked f(x)==x (function is the > identity), an input of "123456" would work. just a comment on this, we are talking about sorting which would generally mean that the

Re: Schwartzian Transform

2001-03-27 Thread John Porter
John Porter wrote: > And I don't like the name ":constant", it smacks too much > of OO. I'd hope we would come up with a better name. :function ? :pure ? -- John Porter

Re: Schwartzian Transform

2001-03-27 Thread John Porter
Peter Buckingham wrote: > but the obvious question is if > it isn't an idempotent function what do we do? do we abort? perhaps the real > question is not whether we can require idempotency but what are we trying to > achieve with it --- there may be another way :) It is easy enough to test if the

Re: Schwartzian Transform

2001-03-27 Thread James Mastros
On Tue, Mar 27, 2001 at 09:26:15AM -0800, Peter Buckingham wrote: > I x A = I x A x A > A = A^2 Problem with this: A isn't a matrix, nor is it even a vector (in the big sense, not the pointy-arrow). It isn't that simple. Also, idempotent in the CS world is diferent then in the algebe

Re: Schwartzian Transform

2001-03-27 Thread Peter Buckingham
> >could you not try a simple test (not guaranteed to be 100% accurate > >though), > >by copying the first data element and apply it twice and then check to see > >that the result of applying it once is the same as applying it twice. > > Feels a little too magic to me, and awfully fragile. I'm n

Re: Schwartzian Transform

2001-03-27 Thread Dan Sugalski
At 09:26 AM 3/27/2001 -0800, Peter Buckingham wrote: >Dan Sugalski wrote: > > > > At 09:50 PM 3/26/2001 -0500, James Mastros wrote: > >[..] > > > >I'd think /perl/ should complain if your comparison function isn't > > >idempotent (if warnings on, of course). If nothing else, it's probably an > >

Re: Schwartzian Transform

2001-03-27 Thread Peter Buckingham
Dan Sugalski wrote: > > At 09:50 PM 3/26/2001 -0500, James Mastros wrote: [..] > >I'd think /perl/ should complain if your comparison function isn't > >idempotent (if warnings on, of course). If nothing else, it's probably an > >indicator that you should be using that schwartz thang. > > If y

Re: Schwartzian Transform

2001-03-27 Thread Dan Sugalski
At 07:37 PM 3/26/2001 -0800, Russ Allbery wrote: >Dan Sugalski <[EMAIL PROTECTED]> writes: > > > You're ignoring side-effects. The tied data may well be returned the > > same every time it's accessed, but that doesn't mean that things aren't > > happening behind the scenes. What if we were trackin

Re: Schwartzian Transform

2001-03-27 Thread Nick Ing-Simmons
Simon Cozens <[EMAIL PROTECTED]> writes: >On Mon, Mar 26, 2001 at 10:50:09AM -0500, Uri Guttman wrote: >> SC> it? That is, @s = sort { f($a) <=> f($b) } @t >> >> because that would require the PSI::ESP module which isn't working >> yet. how would perl intuit exactly the relationship between th