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

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

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: 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
> 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 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

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

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

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

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: 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

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 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 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 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 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. :'( -- ~~

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