Re: '!' versus 'not' in boolean expression

2016-01-26 Thread Tom Browder
On Mon, Jan 25, 2016 at 1:42 PM, Carl Mäsak wrote: > Tom (>): >> In creating some new Perl 6 programs I've run across several instances >> I'm confused about, to wit: ... >>> my %h; say 'false' if !%h:exists; >> Unexpected named parameter 'exists' passed > > I can explain this one. But it's the ki

Re: '!' versus 'not' in boolean expression

2016-01-25 Thread Brandon Allbery
On Mon, Jan 25, 2016 at 2:42 PM, Carl Mäsak wrote: > >> my %h; say 'false' if !%h:exists; > > Unexpected named parameter 'exists' passed By the way, is it me or would it be a lot more appropriate and helpful if this error said *what* it was passed to? -- brandon s allbery kf8nh

Re: '!' versus 'not' in boolean expression

2016-01-25 Thread Carl Mäsak
Tom (>): > In creating some new Perl 6 programs I've run across several instances > I'm confused about, to wit: > > Example 1 > --- > >> my %h; say 'false' if !%h:exists; > Unexpected named parameter 'exists' passed I can explain this one. But it's the kind of explanation that makes a

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread Tom Browder
On Mon, Jan 18, 2016 at 1:37 PM, Elizabeth Mattijsen wrote: >> On 18 Jan 2016, at 19:55, Tom Browder wrote: >> In creating some new Perl 6 programs I've run across several instances >> I'm confused about, to wit: >> >> Example 1 >> --- >> >>> my %h; say 'false' if !%h:exists; >> Unexp

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread James Ellis Osborne III
Too many Reimanns & Not enough role? -jas On 18 January 2016 at 11:37, Elizabeth Mattijsen wrote: > >> On 18 Jan 2016, at 19:55, Tom Browder wrote: >> >> In creating some new Perl 6 programs I've run across several instances >> I'm confused about, to wit: >> >> Example 1 >> --- >> >

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread Elizabeth Mattijsen
> On 18 Jan 2016, at 19:55, Tom Browder wrote: > > In creating some new Perl 6 programs I've run across several instances > I'm confused about, to wit: > > Example 1 > --- > >> my %h; say 'false' if !%h:exists; > Unexpected named parameter 'exists’ passed Yeah, this is an unexpect

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread yary
In Perl5, there's "&&" vs "and", "||" vs "or", "^" vs "xor", and "!" vs "not", the difference being precedence. Perhaps it's the same with Perl6...