Damian Conway wrote:
Rod Adams wrote:
The overall impression I'm getting here is that we need some syntax
for saying:
$x = any(1..1000) such_that is_prime($x);
In standard Perl 6 that'd be:
$x = any(grep {is_prime $^x} 1..1000);
or, if you prefer your constraints postfixed:
$x = any( (1..100
On Thu, Feb 10, 2005 at 03:02:03PM -0800, Ovid wrote:
> I have no problem with this. Is anyone even using THS?
Yes. Everyone who uses Test::Harness.
On Thu, Feb 10, 2005 at 02:49:55PM -0800, chromatic wrote:
> It's a patch to Test::Harness::Straps, the documentation of which
> disclaims backwards compatibility. I'd like it to work on Windows so as
> to avoid people complaining if it doesn't, but I'm just saying that 1) I
> don't feel any parti
Ovid wrote:
> Is anyone even using THS?
/me raises his hand
> If anything, I
> suspect there are a tiny handful of people who have played with it, but
> haven't really used it since it's not as useful as it could be.
I got Apache-Test to run .php scripts in under 10 lines by subclassing
strap
Rod Adams wrote:
The overall impression I'm getting here is that we need some syntax for
saying:
$x = any(1..1000) such_that is_prime($x);
In standard Perl 6 that'd be:
$x = any(grep {is_prime $^x} 1..1000);
or, if you prefer your constraints postfixed:
$x = any( (1..1000).grep({is_prime $^x}
--- chromatic <[EMAIL PROTECTED]> wrote:
> It's a patch to Test::Harness::Straps, the documentation of which
> disclaims backwards compatibility. I'd like it to work on Windows so
> as
> to avoid people complaining if it doesn't, but I'm just saying that
> 1) I
> don't feel any particular guilt ab
Patrick Michaud wrote:
On Thu, Feb 10, 2005 at 10:42:34AM +, Thomas Yandell wrote:
Is the following comment correct?
my $x = any(2,3,4,5) and any(4,5,6,7); # $x now contains any(4,5)
Short answer: I don't think so.
Long answer:
Patrick is right on the money here...as usual. (Don't you just
On Thu, 2005-02-10 at 17:30 -0500, Michael G Schwern wrote:
> Err, I don't get it.
It's a patch to Test::Harness::Straps, the documentation of which
disclaims backwards compatibility. I'd like it to work on Windows so as
to avoid people complaining if it doesn't, but I'm just saying that 1) I
do
On Thu, Feb 10, 2005 at 01:56:50PM -0800, chromatic wrote:
> On Thu, 2005-02-10 at 16:46 -0500, Michael G Schwern wrote:
>
> > Trouble is STDOUT is parsed while STDERR is not so T::H has to be able
> > to disambiguate them while still displaying them in the correct ordering
> > and not run afoul
On Thu, 2005-02-10 at 16:46 -0500, Michael G Schwern wrote:
> Trouble is STDOUT is parsed while STDERR is not so T::H has to be able
> to disambiguate them while still displaying them in the correct ordering
> and not run afoul of any buffering issues.
I wave the "Nope, the UNbiquitous Test::Har
On Thu, 2005-02-10 at 11:59, Luke Palmer wrote:
> There's been some discussion about bringing a syntax back for that
> recently, but I haven't really been paying attention. Anyway, this is
> pretty clear:
>
> loop {
> $foo = readline;
> do { stuff :with($foo) };
> las
On Sun, Feb 06, 2005 at 01:46:14PM -0800, chromatic wrote:
> I don't know that that's a problem if you redirect STDERR to the same
> place as STDOUT. Is there any OS where the order of printing is that
> badly nondeterministic? If so, can I wave my hands at its users and
> suggest either upgradin
At 01:40 PM 2/9/2005, Aaron Sherman wrote:
On Wed, 2005-02-09 at 12:08, [EMAIL PROTECTED] wrote:
> I read that you can provide support (in Perl 6) for most languages that
> parsers have been written for. As it appears to me, however, the
languages
> that you are mainly interested in are substitute
On Sun, 2005-02-06 at 20:16 -0600, Andy Lester wrote:
> I should NOT have applied that? It's already on my trunk.
Half of it was good. The IPC::Open3 code is probably problematic, so it
should revert.
I really like the diagnostic-parsing code, but it's worth discussing
whether to enable this b
On Thu, Feb 10, 2005 at 12:32:21PM +0100, Miroslav Silovic wrote:
: [EMAIL PROTECTED] wrote:
:
: >>i think so but i can't read larry's mind (nor would i want to! :)
: >>
: >>XP = extreme programming
: >>DBC = design by contract (or even designed by conway :)
: >>MP = ??
: >
: >
: >Modu
Patrick R. Michaud wrote:
Even if you fixed the =/and precedence with parens, to read
my $x = (any(2,3,4,5) and any(4,5,6,7));
then I think the result is still that $x contains any(4,5,6,7).
Funny. I thought $x would contain 'true' here, since C was a
boolean operator. But I could be very wro
On Thu, Feb 10, 2005 at 07:39:54AM -0800, David Storrs wrote:
: Given that Perl 6 won't support an actual do-while loop a la C++ (and
: yes, I know that Perl5 didn't either), how would you accomplish that?
: That is, I'd like to have a loop that runs once, then checks its
: condition to see if it s
David Storrs writes:
> Given that Perl 6 won't support an actual do-while loop a la C++ (and
> yes, I know that Perl5 didn't either), how would you accomplish that?
> That is, I'd like to have a loop that runs once, then checks its
> condition to see if it should repeat and continues to repeat as l
Given that Perl 6 won't support an actual do-while loop a la C++ (and
yes, I know that Perl5 didn't either), how would you accomplish that?
That is, I'd like to have a loop that runs once, then checks its
condition to see if it should repeat and continues to repeat as long
as the condition is true.
On Thu, Feb 10, 2005 at 10:42:34AM +, Thomas Yandell wrote:
> Is the following comment correct?
>
> my $x = any(2,3,4,5) and any(4,5,6,7); # $x now contains any(4,5)
Short answer: I don't think so.
Long answer: I tend to get very lost when dealing with junctions, so
I can be completely wro
Sorry if you get this twice (and slightly different), but I posted it
off list by mistake.
-- Forwarded message --
From: Thomas Yandell <[EMAIL PROTECTED]>
Date: Thu, 10 Feb 2005 10:22:44 +
Subject: Re: Junctive puzzles.
To: Matthew Walton <[EMAIL PROTECTED]>
> > What if junc
On Thu, 10 Feb 2005, Miroslav Silovic wrote:
Modular Programming
David
I think it's Metaprogramming. :)
The only thing that sprung to my mind was "MetaPost"...
Michele
--
No one can ever predict all of the possible error conditions, of course;
as soon as we write idiot-proof code, along comes a bet
[EMAIL PROTECTED] wrote:
i think so but i can't read larry's mind (nor would i want to! :)
XP = extreme programming
DBC = design by contract (or even designed by conway :)
MP = ??
Modular Programming
David
I think it's Metaprogramming. :)
Miro
[EMAIL PROTECTED] wrote:
What if junctions collapsed into junctions of the valid options under
some circumstances, so
my $x = any(1,2,3,4,5,6,7);
if(is_prime($x) # $x = any(2,3,5,7)
and is_even($x) # $x = any(2)
and $x > 2) # $x = any()
This is Just Wrong, IMO. How confusing is it going to be to f
[EMAIL PROTECTED] wrote:
Yes... but perhaps instead of the above transform we should just make
sure that < is transitive in the first place... so that no matter what
if a
Partial ordering relations are also transitive by definition.
Of course, you can overload '<' to be something other than orde
Aaron Sherman wrote:
So hold on to your socks... what about:
@x @y;
This reminds me of AWK's string concatenation behaviour:
print "this " $1 " that " $2
This was nice feature at the time, but caused problems down the track
when they wanted to add functions to the language in a subsequen
Uri Guttman wrote:
[...]
i think so but i can't read larry's mind (nor would i want to! :)
XP = extreme programming
DBC = design by contract (or even designed by conway :)
MP = ??
Modular Programming
David
John Macdonald wrote:
The basic problem is that a junction does not work well with
boolean operations, because the answer is usually "sometimes
yes and sometimes no" and until you resolve which of those is
the one you want, you have to proceed with both conditions.
Well, just patch the boolean oper
Matt Fowles wrote:
This is Just Wrong, IMO. How confusing is it going to be to find that
calling is_prime($x) modifies the value of $x despite it being a very
simple test operation which appears to have no side effects?
As far as I can see it, in the example, it's perfectly logical for
is_prime($x)
> "MD" == Michele Dondi <[EMAIL PROTECTED]> writes:
MD> On Wed, 9 Feb 2005, Larry Wall wrote:
>> roadblocks thrown in their way. That's true not only for LP, but
>> also for FP, MP, XP, AOP, DBC, and hopefully several other varieties
MD> ^^ ^^^
MD> ^
On Wed, 9 Feb 2005, Larry Wall wrote:
roadblocks thrown in their way. That's true not only for LP, but
also for FP, MP, XP, AOP, DBC, and hopefully several other varieties
^^ ^^^
^^ ^^^
1. 2.
Ehmmm... sorry for the ignorance, but...
1. Fu
31 matches
Mail list logo