Re: Undefine mixed data

2023-03-21 Thread rir
On Mon, Mar 20, 2023 at 10:42:45PM +, Ralph Mellor wrote: > On Mon, Mar 20, 2023 at 12:49 AM rir wrote: > > > > I did, and do, recognize the validity of the problem of 'undefine' not > > not aligning with '.defined'. > > But do you understand the problem

Re: Undefine mixed data

2023-03-20 Thread rir
rse > this is all just my opinion and this feels like something reasonably simple > to achieve; simple enough that I can take up on it when the time comes. > Objections are welcome, except the kind that refers to the breaking nature > and legacy reasons. > > On 2023. 03. 18.

Re: Undefine mixed data

2023-03-19 Thread rir
:54PM +, Ralph Mellor wrote: > On Fri, Mar 17, 2023 at 11:11 PM rir wrote: > > > > Deprecating 'undefine' is just making something easy more difficult. > > I see a problem with `undefine`: > > ``` > my @bar; > say @bar.defined, @bar.DEFINITE; # TrueTrue &g

Re: Undefine mixed data

2023-03-17 Thread rir
how containers might be implemented, but I think education about the current state is a good path. That could be more docs, and also callables which may have little point but as educational demonstrations. Rob On Fri, Mar 17, 2023 at 04:58:30PM -0400, rir wrote: > Marton, I am not sure of y

Re: Undefine mixed data

2023-03-17 Thread rir
2023 at 01:38:22PM +0100, Polgár Márton wrote: > On 2023. 03. 14. 4:42, rir wrote: > > undefine seen at: > >, line 1 > > Will be removed with release v6.e! > > Please use another way: assign a Nil; for Arrays/Hashes, assign Empty > > or

Undefine mixed data

2023-03-13 Thread rir
undefine seen at: , line 1 Will be removed with release v6.e! Please use another way: assign a Nil; for Arrays/Hashes, assign Empty or () instead. Will that deprecation require a conditional and two assignments for mixed data? [$a, @a, $b, %c, $c, ].map: { .}; [$a, @a, $b,

bug in REPL and REPL comment Was: Re: bug in REPL

2022-11-25 Thread rir
On Thu, Nov 24, 2022 at 08:55:05PM -0800, ToddAndMargo via perl6-users wrote: > Fedora 36 > rakudo-pkg-2022.7.0-03.x86_64 > > > > use NativeCall > > > $j =6; $k = CArray[uint8].new(0xFF xx $j ); print $j ~ "\n"; > Cannot find method 'qast' on object of type NQPMu > > > REPL does not like the

JPEG meta-data timestamps

2022-10-08 Thread rir
Are there any Raku modules for extracting meta-data from JPEG files? I have looked but not found. At this point, I just want to extract dates to re-timestamp the files. Later, I might use the fix in the pictures to map to personally defined places. Rob

Re: BEGIN {} question

2022-09-10 Thread rir
Richard, That is a nice summary of some differences among various Callables. Rob On Tue, Aug 30, 2022 at 09:34:01PM +0100, Richard Hainsworth wrote: > Hi Todd, > > Long time no see. > > Re your 'keeper'. There is a reason why things are called the way they are > in Raku (aka Perl6). BEGIN is

Re: Confused after consuming hashish

2022-07-07 Thread rir
Hi all, On Wed, Jul 06, 2022 at 08:44:02PM -0700, William Michels via perl6-users wrote: > I'm assuming the `%` is the anonymous state variable (associative)? > https://docs.raku.org/language/variables#The_%_variable Thanks, Bill, that is a significant bit (Ha, I'll keep that to punish

Re: Confused after consuming hashish

2022-07-06 Thread rir
Hi, Sorry, my previous message got away from me a little to soon. I'll stand by it without the last partial sentence, and, more important, the addition of a greeting and some good will. Thanks, Rob On Wed, Jul 06, 2022 at 10:54:11PM -0400, rir wrote: > > This is sharing a 'What?!!'

Confused after consuming hashish

2022-07-06 Thread rir
This is sharing a 'What?!!' moment and some aftermath with the hope of some reduction of ignorance. This is from some code I found: say my %h = % = %(:a(1)); # OUTPUT: «{a => 1}␤» All whitespace after the identifier is optional--not changing the assignment. Reduced further:

Re: Merry Xmas day

2022-01-08 Thread rir
Can you give, or point to, a definition of 'full-blown macros'? Rob

Re: Date.new("2024-02-29").later( :1year)

2021-12-13 Thread rir
05:23, rir wrote: > > > > > > REPL says: > >> Date.new("2024-02-29").later( :1year); > >2025-02-28 > > > > Is the following some standard? > > I'm not sure... > > Basically when moving by month / year, it just basically moves

Date.new("2024-02-29").later( :1year)

2021-12-12 Thread rir
REPL says: > Date.new("2024-02-29").later( :1year); 2025-02-28 Is the following some standard?

Delegation

2021-11-26 Thread rir
Is it possible to to delegate plain or overridden operators? If so, what does the syntax look like? Rob

Re: why not raku ?

2021-11-22 Thread rir
CURI? rob

Re: Perl 5 list assignment idiom

2021-11-13 Thread rir
On Mon, Mar 13, 2017 at 11:32:25AM -0700, Sean McAfee wrote: > In Perl 5 ... > 1 == (my ($script) = $page->find('//script')) > or die "Other than exactly one script element found"; > Can a similar expression that avoids an intermediate array variable be > written in Perl 6? This

Re: REPL / Linenoise question (backslashes)

2021-07-17 Thread rir
On Wed, Jul 14, 2021 at 08:40:07AM -0700, William Michels via perl6-users wrote: > > \ > {} > > \\ > {} > > \\\ > {} > Curiously, I seem to create an object in my REPL environment when I enter > either a single-, double-, or triple-backslash. ... Your backslash destroys the newline so the

Re: how to form rules for commutative triads?

2021-05-30 Thread rir
On Sat, May 29, 2021 at 09:51:22PM -0500, Bruce Gray wrote: > > On May 29, 2021, at 5:57 PM, rir wrote: > >rule cmp_expression { > >| > >| > >| ... > >} > I am not at all clear on what you are asking, so if no

how to form rules for commutative triads?

2021-05-29 Thread rir
value_expression exist but are not well defined, nor known by me. rir

Re: Weird! When legal?

2021-02-24 Thread rir
', and 'modifier loop' are phrases that don't exist on docs.raku.org. I think I interpreted "before the expression" poorly. Thanks, rir On Wed, Feb 24, 2021 at 06:18:11PM +, Gianni Ceccarelli wrote: > On 2021-02-24 rir wrote: > > It is just an odd puzzle for me that "Unk

Re: Weird! When legal?

2021-02-24 Thread rir
zle for me that "UnknownBareId KnownClassId" is accepted has the start of a valid statement. How would such a statement be completed? Thanks, rir On Wed, Feb 24, 2021 at 05:48:07PM +0100, Elizabeth Mattijsen wrote: > $ raku -e 'class samesame { hello samesame, { say "Wosup?" } }' >

Weird! When legal?

2021-02-24 Thread rir
ting any of: infix infix stopper postfix Why is this a special case instead of a common undeclared error? The second 'samesame' could be 'Instant' and do the same. I'm not seeing how to continue from the ⏏ to make a statement. rir