The point was that 「say」 will print undefined values without complaining.
Really debug statements should be more like:
$*STDERR.put: 「%CommandLine = 」, %CommandLine;
Or more succinctly:
dd %CommandLine;
On Wed, May 27, 2020 at 1:39 AM Peter Pentchev wrote:
> On Tue, May 26, 2020 at
Hi
I am an emacs user, and I just installed the raku-mode for emacs. It is also
advertised there is a flycheck-raku module on MELPA. But there is no such
module. Instead, there is a flycheck-perl6 module. It seems the author would
like people to switch from perl6-mode to raku-mode, from
On 2020-05-26 23:39, Peter Pentchev wrote:
On Tue, May 26, 2020 at 07:16:54PM -0700, ToddAndMargo via perl6-users wrote:
On 2020-05-25 23:42, ToddAndMargo via perl6-users wrote:
HI All,
I am missing something here:
154: # figure out the label
155: say %CommandLine;
156: if
On 2020-05-27 07:27, Brad Gilbert wrote:
The point was that 「say」 will print undefined values without complaining.
Really debug statements should be more like:
$*STDERR.put: 「%CommandLine = 」, %CommandLine;
Or more succinctly:
dd %CommandLine;
Which does bring to the forefront,
On 2020-05-27 14:32, Andy Bach wrote:
#!/usr/bin/env raku
my Str $x;
if $x.starts-with( "[" ) &&
$x.contains( "]" )
{ say "Passed"; } else { say "Failed"; }
K:\Windows\NtUtil>raku Contains.Test.pl6
Cannot resolve caller starts-with(Str:U: Str:D); none of these
signatures match
(Cool:D: Cool:D
On 2020-05-27 14:26, Will Coleda wrote:
Part of framing the question in the first place is reducing the
problem code to as small a subset as possible that still exhibits the
problem.
AND THEY ALWAYS WORK! !
No reporting that back to the developers.
Often, in the course of
On 2020-05-27 13:38, Veesh Goldman wrote:
well, like I said before, if you just show ALL of your code, then we'd
be able to know what happened.
I fixed the mistake I made, which also fixed the
wrong output from "say", so all is working now
and I doubt the issue would reproduce.
The code
Part of framing the question in the first place is reducing the
problem code to as small a subset as possible that still exhibits the
problem.
Often, in the course of doing this "golfing", you'll uncover the
problem yourself.
On Wed, May 27, 2020 at 4:59 PM ToddAndMargo via perl6-users
wrote:
>
#!/usr/bin/env raku
my Str $x;
if $x.starts-with( "[" ) &&
$x.contains( "]" )
{ say "Passed"; } else { say "Failed"; }
K:\Windows\NtUtil>raku Contains.Test.pl6
Cannot resolve caller starts-with(Str:U: Str:D); none of these
signatures match
(Cool:D: Cool:D $needle, :i(:$ignorecase)!,
I managed to reproduce one of the errors I was getting.
I specifically did not initialize $x. If I do, the
error goes away. In my code, I did a "say $x" and it
said $x had something in it. That is what threw me off
K:\Windows\NtUtil>raku -v
This is Rakudo version 2020.05.1 built on MoarVM
On Tue, May 26, 2020 at 07:16:54PM -0700, ToddAndMargo via perl6-users wrote:
> On 2020-05-25 23:42, ToddAndMargo via perl6-users wrote:
> > HI All,
> >
> > I am missing something here:
> >
> >
> > 154: # figure out the label
> > 155: say %CommandLine;
> > 156: if
11 matches
Mail list logo