Is there a linter for Perl 6? (like Perl::Critic or pylint)

2017-05-31 Thread Gabor Szabo
e.g. I'd like to check that every pl pm and t file in our project has a "use v6;" at the beginning. regards Gabor

Re: ding!

2017-05-31 Thread ToddAndMargo
On 05/31/2017 09:11 PM, Peter Scott wrote: On 5/31/17 8:44 PM, ToddAndMargo wrote: On 05/31/2017 08:39 PM, Lloyd Fournier wrote: perl6 -e 'say "\a"' No joy under linux. 0x07 does not work either. Just prints a 7 ITYM chr(7). perl6 -e 'print chr(7)' No joy. :'( -- ~~

Re: ding!

2017-05-31 Thread ToddAndMargo
On Thu, Jun 1, 2017 at 3:23 PM, ToddAndMargo > wrote: Hi All, Does Perl 6 have a build in "ding" sound, or do I need to make a system call (which I do all the time in bash script)? Many thanks, -T -- ~~~

Re: ding!

2017-05-31 Thread Peter Scott
On 5/31/17 8:44 PM, ToddAndMargo wrote: On 05/31/2017 08:39 PM, Lloyd Fournier wrote: perl6 -e 'say "\a"' No joy under linux. 0x07 does not work either. Just prints a 7 ITYM chr(7).

Re: ding!

2017-05-31 Thread David Warring
Does printing an ASCII BEL character do what you want? perl6 -e'print "\x7"' On Thu, Jun 1, 2017 at 3:23 PM, ToddAndMargo wrote: > Hi All, > > Does Perl 6 have a build in "ding" sound, or do I > need to make a system call (which I do all > the time in bash script)? > > Many thanks, > -T > > --

Re: ding!

2017-05-31 Thread ToddAndMargo
On 05/31/2017 08:39 PM, Lloyd Fournier wrote: perl6 -e 'say "\a"' No joy under linux. 0x07 does not work either. Just prints a 7

Re: ding!

2017-05-31 Thread Lloyd Fournier
perl6 -e 'say "\a"' Will print the alarm character which causes an annoying sound on my mac. Other than that, you'll have to investigate the module ecosystem or shell out to something. LL On Thu, Jun 1, 2017 at 1:24 PM ToddAndMargo wrote: > Hi All, > > Does Perl 6 have a build in "ding" sound

ding!

2017-05-31 Thread ToddAndMargo
Hi All, Does Perl 6 have a build in "ding" sound, or do I need to make a system call (which I do all the time in bash script)? Many thanks, -T -- ~ When we ask for advice, we are usually looking for an accomplice. -- Charles Va

Re: slightly unexpected JSON roundtrip for arrays

2017-05-31 Thread Lloyd Fournier
It is the expected behaviour. The problem isn't what from-json is returning but what kind of assignment you're doing to the result. Here's a simple version: my @a = $[1,2,3]; say @a # [[1 2 3]] Since from-json doesn't know what it's returning, (a string, a hash, an array) it returns whatever it

[perl #131417] [BUG] Incorrect useless use warning in `so try await`

2017-05-31 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131417] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131417 > 02:32 m: so try await start 42 02:32 camelia rakudo-moar 8ec181: OUTPUT: «WARN

slightly unexpected JSON roundtrip for arrays

2017-05-31 Thread Gabor Szabo
When converting an array to json and then back again, I need to use | or () in order to get back the original array in a @variable. This surprised me, especially as for hashes the roundtrip worked without any extra work. I was wondering if this is really the expected behaviour? Gabor use v6; use

[perl #131414] [BUG] Failure to detect use of coercion on vars when smiley type constraint is used

2017-05-31 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131414] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131414 > The first eval complains that I can't use a coercer on a variable... However, the latter

[perl #131413] [LTA] Errors in Int() coercer

2017-05-31 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131413] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131413 > The first one says it expected Int but got Str, when in reality the type constraint is An

[perl #131408] Curious "Too many positionals" error from bail-out() with no positionals.

2017-05-31 Thread Zoffix Znet via RT
On Wed, 31 May 2017 02:45:07 -0700, elizabeth wrote: > tests needed. Tests added: https://github.com/perl6/roast/commit/83e984a190 > On 31 May 2017, at 07:20, brian d foy (via RT) > wrote: > Besides the actual error, the error message isn't great. I would have > liked it to mention the method

[perl #131408] Curious "Too many positionals" error from bail-out() with no positionals.

2017-05-31 Thread Zoffix Znet via RT
On Wed, 31 May 2017 02:45:07 -0700, elizabeth wrote: > tests needed. Tests added: https://github.com/perl6/roast/commit/83e984a190 > On 31 May 2017, at 07:20, brian d foy (via RT) > wrote: > Besides the actual error, the error message isn't great. I would have > liked it to mention the method

[perl #131397] semicolon subscripting in multi dim arrays has odd interactions with numeric string indexes

2017-05-31 Thread Sam S. via RT
Shorter example: my @a = [2, 4], [6, 8]; say @a[1; 1].perl; # 8 say @a["1"; "1"].perl; # (8,) PS: Definitely seems related to the following ticket: https://rt.perl.org/Ticket/Display.html?id=130947

Is perl6-debug working

2017-05-31 Thread rnhainsworth
I recently re-installed rakudo from scratch to eliminate panda. That is I deleted all previous versions of rakudo / perl6, cloned rakudobrew, then rakudobrew build moar But perl6-debug is no longer present in . rakudobrew/bin I installed the debug UI module, but perl6-debug is not a part of the i

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Patrick R. Michaud
On Wed, May 31, 2017 at 09:33:59AM -0400, Brock Wilcox wrote: > One of my dreams is to adopt a client/server + middleware model from nREPL > (clojure) which I think works really well, and likely to do that in > userspace as a regular module. Moving everything into REPL.pm (perl6 > instead of nqp) l

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Parrot Raiser
> Do you have something specific in mind? I don't know enough about the internals to have any particular suggestions. Keeping functions properly local is just one of those "motherhood and apple pie" principles that is much easier to follow if it is done consistently from the start.

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Brock Wilcox
Some progress on this has already been made, which is how it got as close to standalone as it is now -- previously the REPL was more NQP than Rakudo. Do you have something specific in mind? One of my dreams is to adopt a client/server + middleware model from nREPL (clojure) which I think works rea

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Parrot Raiser
I was not proposing that the REPL was to be invoked in any other way than at present. By "reducing the coupling", I mean arranging functions and interfaces in a way that prevents a change in one function affecting the other. Essentially, implementing standard interfaces between complete functions.

Re: How to deriving own distinguish type from Int?

2017-05-31 Thread Elizabeth Mattijsen
> On 31 May 2017, at 12:25, cle-pe...@qiao.in-berlin.de wrote: > > Hello, > > I am already following Perl 6 since many years. But only recently as books > began to appear, I began to really learn it. > > One of the many things I like on Perl 6 is its static typing possibility. I > am used to d

[perl #131409] whatever auto closure fails with smartmatch with regex

2017-05-31 Thread Zoffix Znet via RT
On Wed, 31 May 2017 03:31:49 -0700, zengargo...@gmail.com wrote: > When using smartmatch against a regex, auto-whatever closure generation > does not work whereas manual pointy closure does work. > > A '{ * eq $match}' behaves differently than a '{ * ~~ /<$match>/}'. > However, '-> $x { $x ~~ <$ma

[perl #131409] whatever auto closure fails with smartmatch with regex

2017-05-31 Thread Zoffix Znet via RT
On Wed, 31 May 2017 03:31:49 -0700, zengargo...@gmail.com wrote: > When using smartmatch against a regex, auto-whatever closure generation > does not work whereas manual pointy closure does work. > > A '{ * eq $match}' behaves differently than a '{ * ~~ /<$match>/}'. > However, '-> $x { $x ~~ <$ma

How to deriving own distinguish type from Int?

2017-05-31 Thread cle-perl6
Hello, I am already following Perl 6 since many years. But only recently as books began to appear, I began to really learn it. One of the many things I like on Perl 6 is its static typing possibility. I am used to dynamical typed languages like Perl 5, Ruby, Python ... you name it. But I am

[perl #131409] whatever auto closure fails with smartmatch with regex

2017-05-31 Thread via RT
# New Ticket Created by zengargoyle # Please include the string: [perl #131409] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131409 > When using smartmatch against a regex, auto-whatever closure generation does not work wher

Re: [perl #131408] Curious "Too many positionals" error from bail-out() with no positionals.

2017-05-31 Thread Elizabeth Mattijsen via RT
Fixed with cb82760625f6b8fec64a75 , tests needed. > On 31 May 2017, at 07:20, brian d foy (via RT) > wrote: > > # New Ticket Created by "brian d foy" > # Please include the string: [perl #131408] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/

Re: [perl #131408] Curious "Too many positionals" error from bail-out() with no positionals.

2017-05-31 Thread Elizabeth Mattijsen
Fixed with cb82760625f6b8fec64a75 , tests needed. > On 31 May 2017, at 07:20, brian d foy (via RT) > wrote: > > # New Ticket Created by "brian d foy" > # Please include the string: [perl #131408] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/

Re: [perl #131406] Bug in Perl6::Metamodel::Naming method set_name. `CArray[Pointer].^shortname` returns 'Pointer]'; should be 'CArray[Pointer]'

2017-05-31 Thread Elizabeth Mattijsen via RT
Fixed with 1ed284e2953382744b02058a , tests needed. > On 31 May 2017, at 04:20, raiph (via RT) wrote: > > # New Ticket Created by raiph > # Please include the string: [perl #131406] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/Ticket/Display.

Re: [perl #131406] Bug in Perl6::Metamodel::Naming method set_name. `CArray[Pointer].^shortname` returns 'Pointer]'; should be 'CArray[Pointer]'

2017-05-31 Thread Elizabeth Mattijsen
Fixed with 1ed284e2953382744b02058a , tests needed. > On 31 May 2017, at 04:20, raiph (via RT) wrote: > > # New Ticket Created by raiph > # Please include the string: [perl #131406] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/Ticket/Display.