Re: <<>> question

2017-10-05 Thread Brad Gilbert
On Thu, Oct 5, 2017 at 11:44 AM, Andy Bach wrote: > >> is ><<>> >> synonymous with >qw[] > ? `<<>>` is the same as `qqww<<>>` Which is short for `Q :qq :ww <<>>` the `:qq` is short for `:double`, that is it turns on double quote behaviour `:double` is short for

RE: Perl 6 Object Construction - General Advice

2017-10-05 Thread Mark Devine
Perl 6 (Timo), In terms of new() uses… I’ve seen a clever use of new() that goes beyond turning ‘positionals’ into ‘named’ in https://github.com/retupmoca/P6-Net-SMTP/blob/master/lib/Net/SMTP.pm6. It wraps methods for debugging. Pretty great, imo. In terms of this thread’s subject… I am

RE: Perl 6 Object Construction - General Advice

2017-10-05 Thread Mark Devine
Timo, Oops. You're right. (I was unconditionally sending an argument in my test that zeroed it out the attribute that I was watching -- doh!) Now I can confirm that TWEAK is the logical place to further initialize attributes. I now see the light! Thanks, Mark -Original Message-

Re: Perl 6 Object Construction - General Advice

2017-10-05 Thread Timo Paulssen
The main difference between BUILD and TWEAK is that BUILD will replace all default and requiredness handling, while TWEAK keeps it intact. TWEAK gets run after these aspects had their turn, so if you have an "is required" attribute that doesn't get a value passed, the BUILDALL process will throw

Re: <<>> question

2017-10-05 Thread Andy Bach
> is <<>> > synonymous with qw[] ? IIUC - close, it like qqw: https://docs.perl6.org/language/quoting#index-entry-quote_qqww-quote_ <<_>>-quote_«_»-Word_quoting_with_interpolation_and_quote_protection:_qqww It's actually synonymous w/ qqww but depending upon your use of quotes w/i the list

Re: <<>> question

2017-10-05 Thread James Ellis Osborne III
MIME Is The Sacha Guitry Picture. On Oct 4, 2017 8:23 PM, "Todd Chester" wrote: > On 10/04/2017 08:20 PM, Todd Chester wrote: > >> So in this context "{$x}" means insert (interpolate) a >> variable into the list? I was thinking it meant to >> insert a variable into a