I've added a test for this in r27180 at the end of S12-subset/subtypes.t
It looks like this:
#?rakudo todo 'bug #66854'
eval_lives_ok 'subset A of Int;', 'subset declaration without where clause';
Kyle.
On Mon, Jun 22, 2009 at 8:38 AM, Carl Mäsak wrote:
> # New Ticket Created by "Carl Mäsak"
>
I've added a test for this in r27179 at the end of
S06-signature/arity.t It looks like this:
#?rakudo todo 'bug #66868: Zero-arg sub interpreted as parameterless'
dies_ok { a_zero( 'hello', 'world' ) }, 'no matching sub signature';
I wrote this assuming that the error that's supposed to occur is
Take a look at the page to which Damian provided a link. You'll find
that XOR does indeed correspond to the definition being used by Perl
6, as well as the natural language meaning. What other languages call
XOR is actually an "odd parity check".
As I suggested above, I think that Perl 6 already
Mark J. Reed wrote:
All of which is just by way of agreeing with Jon: formal logic is not
the primary motivator behind Perl's design. So while it should be
considered, it's not a knockout punch to say "but logic doesn't work
that way."
I think another thing to consider is a survey of the variou
> On Mon, Jun 22, 2009 at 4:12 PM, Minimiscience wrote:
> I don't think natural language -- especially the abomination that is English
> -- is the best guide for understanding logical operations (why, yes, I *do*
> speak Lojban; how did you know?).
To which Jon Lang replied:
> You're aware that Pe
# New Ticket Created by Trey Harris
# Please include the string: [perl #66868]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66868 >
13:52 < Trey> rakudo: sub foo() { say 'hi'}; foo('hi', 'mom');
13:52 < p6eval> rakudo 10f
On Mon, Jun 22, 2009 at 4:12 PM, Minimiscience wrote:
> On Jun 22, 2009, at 5:51 PM, Damian Conway wrote:
>>
>> Perl 6's approach to xor is consistent with the linguistic sense of
>> 'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also
>> with the IEEE 91 standard for logic gates.
On Jun 22, 2009, at 5:51 PM, Damian Conway wrote:
Perl 6's approach to xor is consistent with the linguistic sense of
'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also
with the IEEE 91 standard for logic gates.
I don't think natural language -- especially the abomination th
Damian Conway wrote:
Perl 6's approach to xor is consistent with the linguistic sense of
'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also
with the IEEE 91 standard for logic gates. See:
http://ozark.hendrix.edu/~burch/logisim/docs/2.1.0/libs/gates/xor.html
for a concis
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #66854]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66854 >
std: subset A of Int;
std 27169: OUTPUT«ok 00:02 35m»
rakudo: subset A of Int;
raku
Perl 6's approach to xor is consistent with the linguistic sense of
'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also
with the IEEE 91 standard for logic gates. See:
http://ozark.hendrix.edu/~burch/logisim/docs/2.1.0/libs/gates/xor.html
for a concise explanation of both t
I had a bit of a problem when first encountering xor with more than
two operands as well. It made sense after I thought about it
linguistically instead of mathematically. When speaking people often
use a string of "or"s to mean "pick one and only one of these choices,
the the exclusion of all other
S03 describes ^^ as a "short‐circuit exclusive‐or" operator which
returns true if & only if exactly one operand is true, short
circuiting after encountering two true values. However, this
definition is only consistent with the mathematical definition of XOR
when the operation is being perf
# New Ticket Created by Shlomi Fish
# Please include the string: [perl #66866]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66866 >
The following program:
{{{
#!/usr/bin/pugs
use v6;
say "Hello";
say "a".my_non_exi
On Mon, Jun 22, 2009 at 04:59:07PM +0900, hojung yoon wrote:
> from S03:
> http://perlcabal.org/syn/S03.html#Conditional_operator_precedence
>
> : It is a syntax error to use an operator in the middle part that binds
> looser in precedence, such as =.
>
> : my $x;
> : hmm() ?? $x = 1 !! $
By my reading, it really is an error, not valid code. The infix:<,> is
looser than the ternary, as you say, so without parens, it parses as:
(1 ?? 1),(2 !! 3),4
I agree, however, that this shouldn't die.
I've added a test for this in t/spec/S03-operators/ternary.t
Thanks.
Kyle.
On Mon, Jun 2
from S03:
http://perlcabal.org/syn/S03.html#Conditional_operator_precedence
: It is a syntax error to use an operator in the middle part that binds
looser in precedence, such as =.
: my $x;
: hmm() ?? $x = 1 !! $x = 2;# ERROR
: hmm() ?? ($x = 1) !! ($x = 2);# works
# New Ticket Created by Hojung Yoon
# Please include the string: [perl #66840]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66840 >
at revision: 1b06df80900096dab8a9f74467f504f73a6115dd
and also at release #18.
: bash$ p
The correct place for this is in an email to rakudo...@perl.org, which
will lodge a ticket with the rakudo bug tracker. I've submitted this
one for you, but feel free to do it yourself in the future.
Good luck with Rakudo, and enjoy Perl 6!
On Sun, Jun 21, 2009 at 6:40 PM, Parrot Raiser<1parr...@
Geoffrey Broadwell wrote:
On Sun, 2009-06-21 at 13:14 +0100, Lyle wrote:
Hi Ron,
I looks like the SVN repo was just down temporarily. Try again and
it'll probably work. You can also run the svn commands directly to grab
parrot... Take a look in gen_parrot.pl
Ron Savage wrote:
Checking out
# New Ticket Created by Matthew Walton
# Please include the string: [perl #66838]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66838 >
Parrot Raiser reported to perl6-compiler:
Following the instructions on the Rakudo ho
Geoffrey Broadwell wrote:
On Sun, 2009-06-21 at 13:14 +0100, Lyle wrote:
Hi Ron,
I looks like the SVN repo was just down temporarily. Try again and
it'll probably work. You can also run the svn commands directly to grab
parrot... Take a look in gen_parrot.pl
Ron Savage wrote:
Checking out
Parrot Bug Summary
http://rt.perl.org/rt3/NoAuth/parrot/Overview.html
Generated at Mon Jun 22 13:00:01 2009 GMT
---
* Numbers
* New Issues
* Overview of Open Issues
* Ticket Status By Version
* Requestors with m
23 matches
Mail list logo