Re: r31735 -[spec] Say a bit about Numeric operators and Bridge.

2010-07-16 Thread Minimiscience
sqrt(2), so there is no least element under the ≤ ordering. If only C types were required to have a *total* ordering rather than a *well*-ordering; things would be so much simpler. -- Minimiscience

Re: Ordering in \bbold{C}

2010-03-28 Thread Minimiscience
n. I can give you a complete proof of this if you like. -- Minimiscience [1] <http://en.wikipedia.org/wiki/Ordered_field>

Re: generality of Range

2009-10-04 Thread Minimiscience
nclusion in intervals; if you want a list of values in an interval, use ... instead. -- Minimiscience

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Minimiscience
raised to the zeroth power is one (except, arguably, zero itself), but, given a number $num, its zeroth root is a number $base such that $base ** 0 == $num, which, as stated above, only makes sense when $num == 1. -- Minimiscience

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Minimiscience
to NaN. But the very next part of the sentence reads "[returns] itself if C<$n == 0>". If root($x, 0) is supposed to return a list containing both NaN and $x, the specification should probably be explicit. If it's meant to only return NaN, the "itself if C<$n == 0>" part needs to be deleted. -- Minimiscience

Duration of a flip-flop's flippy thing

2009-09-16 Thread Minimiscience
updating it each iteration until true is returned, but it seems like Perl 6 should have a better way. Thanking you in advance, Minimiscience

"take"-ing to-be-modified variables

2009-07-21 Thread Minimiscience
e current block? Is this even necessary, i.e., is the observed behavior just a bug in Rakudo, or is that too much to hope for? #!/usr/bin/env perl6 use v6; my @stuff = gather { my @things; for ^23 { @things.push: $_; if @things == 5 { take @things; @things = (); } } } say @stuff.perl; __END__ -- Minimiscience

Re: A few questions

2009-07-12 Thread Minimiscience
v6; my Str $x = undef; say ($x.?comb).perl; This gives a "Use of uninitialized value" warning when run. -- Minimiscience

Re: A few questions

2009-07-12 Thread Minimiscience
ature? It seems like there should be more to it than that. -- Minimiscience

A few questions

2009-07-11 Thread Minimiscience
s there some sort of shortcut (e.g., of the form ".‽method") for calling a method on an object if the object is defined and returning undef if it is not defined? I was hoping that ".?method" could do this, but it doesn't seem to (in Rakudo, at least). Thank you in advance, Minimiscience

Re: XOR does not work that way.

2009-06-22 Thread Minimiscience
true value" definition for ^^ and xor would make Perl 6 inconsistent with itself. I was going to say more in support of adding a separate operator for "exactly one true value," but Darren Duncan beat me to it. -- Minimiscience

XOR does not work that way.

2009-06-22 Thread Minimiscience
e) could be problematic. To summarize: either bring ^^ and xor with more than two operands in line with the mathematical definition (possibly by just making them left-associative and rewriting the descriptions to match), or stop calling them "exclusive or." -- Minimiscience

Re: RPN calculator in Perl 6

2009-06-06 Thread Minimiscience
a.pop; (Note that, in addition to the use of .pop, $rs is now acquired before $ls.) At least, I think that's how it works. -- Minimiscience

Re: How to speed up a grammar

2009-06-06 Thread Minimiscience
should be there. I think it might be causing the grammar engine to check whether it can omit the ending of each tag and attach it to the enclosing tag instead, which it can't confirm without examining the whole file at least once for each tag. -- Minimiscience