develooper Front page | perl.perl6.language | Postings from March 2005

Re: SEND + MORE = MONEY (works now in pugs with junctions!)

Thread Previous | Thread Next
Thomas Sandlaß
March 14, 2005 01:53
Re: SEND + MORE = MONEY (works now in pugs with junctions!)
Message ID:
Rod Adams wrote:
> I have the philosophical problem with your use of junctions in this 
> context due to the fact that you are completely ignoring the predicate 
> of the junction. The C< all(...) == one(...) > is an excellent use of 

YES, and much clearer than when this test is buried under code
that has to be written if you only have simple tests and boolean

> junctions, that makes use of the predicates when the junctions are 
> evaluated. If you want threading without the predicate, I give you the 
> hyperthreader (well, I'm trying to).

I fully agree to this. I interpret the junctions as "oracle values":
the predicate is used to properly address them when you ask e.g. "is
any of your values greater than 10?". You shouldn't assume an inner
structure. And as Rod points out, many examples are using the inner
structure and the auto-threading while *ignoring* the predicate.

TSa (Thomas Sandlaß)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About