Re: "Three-valued" logic (was Re: range doc page)

2020-01-28 Thread Trey Ethan Harris
On Tue, Jan 28, 2020 at 19:11 William Michels wrote: > Agreed. Thank you Trey! > > Trey (or anyone else in the know), when Perl6 was developed, was there > any consideration given to implementing pure "three-valued" (Kleene or > Priest) logical operators, similar to SQL and/or R ? Just curious.

"Three-valued" logic (was Re: range doc page)

2020-01-28 Thread William Michels via perl6-users
Agreed. Thank you Trey! Trey (or anyone else in the know), when Perl6 was developed, was there any consideration given to implementing pure "three-valued" (Kleene or Priest) logical operators, similar to SQL and/or R ? Just curious. https://en.wikipedia.org/wiki/Three-valued_logic

Re: range doc page

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 13:36, William Michels via perl6-users wrote: Todd, are you looking for a range smartmatch, or possibly the ".in-range" method (Rakudo-only, below)? my $u = 248 248 say (-128..127).in-range($u); Value out of range. Is: 248, should be in -128..127 in block at line 1 my

Re: range doc page

2020-01-28 Thread William Michels via perl6-users
Todd, are you looking for a range smartmatch, or possibly the ".in-range" method (Rakudo-only, below)? > my $u = 248 248 > say (-128..127).in-range($u); Value out of range. Is: 248, should be in -128..127 in block at line 1 > my int8 $v = 0xF8; -8 > say (-128..127).in-range($v); True > "In

Re: range doc page

2020-01-28 Thread Trey Harris
Sorry to keep replying to myself... On Tue, Jan 28, 2020 at 15:13 Trey Harris wrote: > All core class Exception objects, as a matter of convention, start with > `X::`. > ...to which a natural question arises: what about non-core Exception objects? Raku lets you call Exceptions whatever you

Re: range doc page

2020-01-28 Thread Trey Harris
On Tue, Jan 28, 2020 at 15:13 Trey Harris wrote: > (And, in case you were unaware, _every_ page in the /routine/... doc tree > is autogenerated from content elsewhere; those headers and links are added > to get you back to the context where the content canonically appears.) > And I just

Re: range doc page

2020-01-28 Thread Trey Harris
On Tue, Jan 28, 2020 at 15:06 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 2020-01-28 11:59, Trey Harris wrote: > > > > > > On Tue, Jan 28, 2020 at 14:55 ToddAndMargo via perl6-users > > mailto:perl6-us...@perl.org>> wrote: > > > > No I am really confused: > > > > What

Re: range doc page

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 11:59, Trey Harris wrote: On Tue, Jan 28, 2020 at 14:55 ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: No I am really confused: What part of      my int8 $u = 0xF8; $u.range is not following      method range(--> Range:D) ?

Re: range doc page

2020-01-28 Thread Trey Harris
On Tue, Jan 28, 2020 at 14:55 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > No I am really confused: > > What part of > > my int8 $u = 0xF8; $u.range > > is not following > > method range(--> Range:D) > > ? > Unless you’re getting the line `method range(--> Range:D)`

Re: range doc page

2020-01-28 Thread ToddAndMargo via perl6-users
No I am really confused: What part of my int8 $u = 0xF8; $u.range is not following method range(--> Range:D) ?

Re: range doc page

2020-01-28 Thread Veesh Goldman
That was one of the most illuminating things I have ever read. Thank you for taking the time to write that. On Tue, Jan 28, 2020, 16:12 Trey Ethan Harris wrote: > Oops, rereading what I sent I see I missed looping back to one detail: > > On Tue, Jan 28, 2020 at 08:54 Trey Harris wrote: > >> In

Re: range doc page

2020-01-28 Thread Curt Tilmes
I blame the English language for some of this. The docs and error messages are actually quite precise and correct as far as they go. The problem comes in my head, when I see the words "Blah type object", I think "an object of type Blah", which I think is a reasonable decoding given the way

Re: range doc page

2020-01-28 Thread Trey Ethan Harris
Oops, rereading what I sent I see I missed looping back to one detail: On Tue, Jan 28, 2020 at 08:54 Trey Harris wrote: > In Perl5, undefinedness meant something that it still _can_ mean, and in > the course of ordinary “business logic” programming perhaps still most > often means: a

Re: range doc page

2020-01-28 Thread Trey Harris
On Tue, Jan 28, 2020 at 01:07 Kevin Pye wrote: > There's no need to ask essentially the same question three times. > And I answered before noticing there was more activity in another thread. > https://docs.raku.org/routine/range > is quite clearly the

Re: range doc page

2020-01-27 Thread Kevin Pye
There's no need to ask essentially the same question three times. https://docs.raku.org/routine/range is quite clearly the wrong page. That's about a method on the class X::OutOfRange, and not a method on Int. You want https://docs.raku.org/routine/Range,

range doc page

2020-01-27 Thread ToddAndMargo via perl6-users
Hi All, On https://docs.raku.org/routine/range, it states: method range(--> Range:D) What is being said? method I understand. Range would be the name of the method --> means is return the range of what was fed the method and is defined This one ain't all the hard to decipher.

range doc page

2020-01-27 Thread ToddAndMargo via perl6-users
Perplexed, -THi All, On https://docs.raku.org/routine/range, it states: method range(--> Range:D) What is being said? method I understand. Range would be the name of the method --> means is return the range of what was fed the method and is defined This one ain't all the hard