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

'!' versus 'not' in boolean expression

2016-01-26 Thread Tom Browder
On Mon, Jan 25, 2016 at 2:07 PM, Brandon Allbery > wrote: > 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

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

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

'!' versus 'not' in boolean expression

2016-01-18 Thread Tom Browder
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 Example 2 --- > my %h; say 'false' if not %h:exists; false It looks like '!'

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...

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

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

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 >> --- >> >>>