[perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-01 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
I'd agree that it is a bug, yes. Well, the reason why it happens might be justified, but this is probably one of the fattest traps I've seen so far. I really think we should come up with a way to eliminate this trap somehow. Not sure how, but there must be a way and I really recommend anybody

Re: [perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-01 Thread Michael Schaap via RT
That may indeed explain why it works the way it does, but that doesn't mean it isn't a bug. IMO it certainly is; [X] and [X*] don't work as advertised. Let me explain how I found this bug. I'm generating a list of divisors for a number. I already have the prime factorization of that number,

Re: [perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-01 Thread Michael Schaap
That may indeed explain why it works the way it does, but that doesn't mean it isn't a bug. IMO it certainly is; [X] and [X*] don't work as advertised. Let me explain how I found this bug. I'm generating a list of divisors for a number. I already have the prime factorization of that number,

[perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-01 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
I think this is related: https://github.com/perl6/doc/issues/1400 On 2017-07-01 12:25:39, pe...@mscha.org wrote: > This is OK: > > > say [X] ((1,2,3), (4,5,6)); > ((1 4) (1 5) (1 6) (2 4) (2 5) (2 6) (3 4) (3 5) (3 6)) > > say [X*] ((1,2,3), (4,5,6)); > (4 5 6 8 10 12 12 15 18) > > ... but this