Re: What are Perl 6's killer advantages over Perl 5?

2015-09-03 Thread Jan Ingvoldstad
On Wed, Sep 2, 2015 at 3:51 AM, Robert Strahl via perl6-users < perl6-users@perl.org> wrote: > I don't understand why some people feel so strongly that one-liners should > be strict. That would undermine what a one-liner is — a quick way to get > something done. I use perl5 one-liners very frequen

Re: What are Perl 6's killer advantages over Perl 5?

2015-09-03 Thread Matija Papec
02.09.2015, 16:42, "Robert Strahl via perl6-users" : >  I don't understand why some people feel so strongly that one-liners should > be strict. That would undermine what a one-liner is — a quick way to get > something done. I use perl5 one-liners very frequently for text processing, > especial

Re: What are Perl 6's killer advantages over Perl 5?

2015-09-02 Thread Robert Strahl via perl6-users
I don't understand why some people feel so strongly that one-liners should be strict. That would undermine what a one-liner is — a quick way to get something done. I use perl5 one-liners very frequently for text processing, especially when stringing / piping together shell code. When I need to re-u

Re: What are Perl 6's killer advantages over Perl 5?

2015-09-01 Thread Matija Papec
This is actually bad decision. If I'm concerned with *my* one-liner I'll use -Mstrict and all would be great. On the other hand, most of the time one-liners use one or two variables. Now, how difficult is for human to track these two? ps. -M-strict (no strict) is not valid command line option, s

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-31 Thread Marc Chantreux
On Fri, Aug 28, 2015 at 05:48:07PM +0200, Carl Mäsak wrote: > Good news! I just pushed a change (with backing from other core > developers) that makes -e strict by default! awesome! thank you Carl! -- Marc Chantreux (eiro on github and freenode) http://eiro.github.com/ http://eiro.github.com/a

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-28 Thread yary
Oh dear... can we get non-strict for one liners with -E then? I admit it isn't an issue for me at the moment, as I do my one liners in perl5 currently Maybe I need to think functionally, so variable declaration isn't an issue at all -y On Fri, Aug 28, 2015 at 11:48 AM, Carl Mäsak wrote: > Mori

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-28 Thread Carl Mäsak
Moritz (>>), Tux (>): >> I could continue with other Perl 5 deficiencies (no strict by default, > > Using strict *STILL* is not enabled by default for perl6 > one-liners either: > > $ perl6 -e'my Int $this = 1; $thıs++; say $this;' > 1 > $ perl6 -Mstrict -e'my Int $this = 1; $thıs++; say $this;' >

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-27 Thread David H. Adler
On Thu, Aug 27, 2015 at 10:35:27AM -0400, yary wrote: > On Thu, Aug 27, 2015 at 4:45 AM, Marc Chantreux wrote: > >complete different usage but it would be nice to have a flag for "use > >strict" both in perl5 and 6 > > /me nominates -W as "a bigger -w" .. oh wait, -W already exists as a > depreci

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-27 Thread yary
On Thu, Aug 27, 2015 at 4:45 AM, Marc Chantreux wrote: >complete different usage but it would be nice to have a flag for "use >strict" both in perl5 and 6 /me nominates -W as "a bigger -w" .. oh wait, -W already exists as a depreciated-in-my-view perl5 flag. In that case, I also like "-E" as "ru

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-27 Thread Marc Chantreux
On Wed, Aug 26, 2015 at 02:00:09PM -0400, Brandon Allbery wrote: > > It used to be, but that was not according to spec. FROGGS++ implemented > > the lax mode, which is enabled by default in one-liners. Perhaps TimToady > > wants to invoke rule #2 on this. > > Personally, I use an alias that has ‘

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Brandon Allbery
On Wed, Aug 26, 2015 at 1:58 PM, Elizabeth Mattijsen wrote: > It used to be, but that was not according to spec. FROGGS++ implemented > the lax mode, which is enabled by default in one-liners. Perhaps TimToady > wants to invoke rule #2 on this. > > Personally, I use an alias that has ‘-M strict

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Elizabeth Mattijsen
> On 26 Aug 2015, at 12:18, H.Merijn Brand wrote: > > On Wed, 26 Aug 2015 10:26:23 +0200, Moritz Lenz > wrote: > >> I could continue with other Perl 5 deficiencies (no strict by default, > > Using strict *STILL* is not enabled by default for perl6 > one-liners either: It used to be, but that

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Marc Chantreux
On Wed, Aug 26, 2015 at 12:18:46PM +0200, H.Merijn Brand wrote: > $ perl6 -e'my Int $this = 1; $thıs++; say $this;' > 1 > $ perl6 -Mstrict -e'my Int $this = 1; $thıs++; say $this;' > ===SORRY!=== Error while compiling -e > Variable '$thıs' is not declared. Did you mean '$this'? > at -e:1 > -->

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread H.Merijn Brand
On Wed, 26 Aug 2015 10:26:23 +0200, Moritz Lenz wrote: > I could continue with other Perl 5 deficiencies (no strict by default, Using strict *STILL* is not enabled by default for perl6 one-liners either: $ perl6 -e'my Int $this = 1; $thıs++; say $this;' 1 $ perl6 -Mstrict -e'my Int $this = 1; $

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Tom Browder
On Wed, Aug 26, 2015 at 3:26 AM, Moritz Lenz wrote: > Hi, > > On 11.08.2015 14:12, Tom Browder wrote: >> >> I have seen several lists of new Perl 6 features (versus Perl 5) but >> they all seem to be lists that intermix features with varying degrees of >> value to "ordinary" Perl 5 users. If one

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Moritz Lenz
Hi, On 11.08.2015 14:12, Tom Browder wrote: I have seen several lists of new Perl 6 features (versus Perl 5) but they all seem to be lists that intermix features with varying degrees of value to "ordinary" Perl 5 users. If one wants to sell long-time Perl 5 users (already using the latest Perl

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread Tom Browder
On Tue, Aug 11, 2015 at 8:45 PM, Fagyal Csongor wrote: >> On Tue, Aug 11, 2015 at 07:12:00AM -0500, Tom Browder wrote: >>> I have seen several lists of new Perl 6 features (versus Perl 5) but they >>> all seem to be lists that intermix features with varying degrees of value >>> to "ordinary" Perl

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread Fagyal Csongor
Hi, On Tue, Aug 11, 2015 at 07:12:00AM -0500, Tom Browder wrote: I have seen several lists of new Perl 6 features (versus Perl 5) but they all seem to be lists that intermix features with varying degrees of value to "ordinary" Perl 5 users. If one wants to sell long-time Perl 5 users (already u

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread Tom Browder
On Wed, Aug 12, 2015 at 4:02 AM, Kamil Kułaga wrote: > One thing that was not mentioned already is using Rat instead of > standard floating point number. It prevents many silly mistakes > especially when counting money. Thanks, Kamil. -Tom

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread Tom Browder
On Wed, Aug 12, 2015 at 2:00 AM, H.Merijn Brand wrote: > On Tue, 11 Aug 2015 21:41:21 -0400, "David H. Adler" ... > *THE* killer feature that will be seen by all beginning perl6 > programmers is its awesome error messages. It is a shame that ... Thanks! -Tom

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread Tom Browder
On Tue, Aug 11, 2015 at 6:41 PM, Andrew Kirkpatrick wrote: > Built-in facilities for the language to parse, transform and extend ... Thanks, Andrew. -Tom

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread Kamil Kułaga
One thing that was not mentioned already is using Rat instead of standard floating point number. It prevents many silly mistakes especially when counting money. On Tue, Aug 11, 2015 at 2:12 PM, Tom Browder wrote: > I have seen several lists of new Perl 6 features (versus Perl 5) but they > all se

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread H.Merijn Brand
On Tue, 11 Aug 2015 21:41:21 -0400, "David H. Adler" wrote: > > The reason for my request is to help with a better introduction in my > > modest draft tutorial on converting Perl 5 to Perl 6 code at the Perl > > Monastery. I am comfortable with the example code I use there (which is > > not curr

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-11 Thread David H. Adler
On Tue, Aug 11, 2015 at 07:12:00AM -0500, Tom Browder wrote: > I have seen several lists of new Perl 6 features (versus Perl 5) but they > all seem to be lists that intermix features with varying degrees of value > to "ordinary" Perl 5 users. If one wants to sell long-time Perl 5 users > (already

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-11 Thread Andrew Kirkpatrick
Built-in facilities for the language to parse, transform and extend itself (std grammar, macros). Prospect of multiple back-ends (compile to dotnet or LLVM targets like Javascript). Feel like you're living in the future (Perl6 has been in the future for so long now). On 11 August 2015 at 21:42, To