# New Ticket Created by Zoffix Znet
# Please include the string: [perl #131275]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=131275 >
Filing per https://irclog.perlgeek.de/perl6-dev/2017-05-08#i_14551843
m: say WHAT 'f
On Mon, May 8, 2017 at 4:49 PM, Joachim Durchholz wrote:
> If the mental model for Perl6 strings is "array of characters" though
Perl has never had that mental model, is my point. It's generally imported
by folks who come from languages where strings *are* "arrays of characters"
--- and where t
Am 08.05.2017 um 20:59 schrieb Brandon Allbery:
On Mon, May 8, 2017 at 2:52 PM, Aleks-Daniel Jakimenko-Aleksejev via RT
mailto:perl6-bugs-follo...@perl.org>> wrote:
Usually I'm against all perl5 error messages
This is a Pythonism (and C and other such languages).
Which doesn't mean that
Yes, but I was trying to address this part: “Just recall how often the
Perl-5-ism exceptions get thrown when writing normal Perl 6 code”
The idea, I guess, is that the proposed error message has the same level of
annoyingness as perl5-related error messages.
On Mon, May 8, 2017 at 9:59 PM, Brando
On Mon, May 8, 2017 at 2:52 PM, Aleks-Daniel Jakimenko-Aleksejev via RT <
perl6-bugs-follo...@perl.org> wrote:
> Usually I'm against all perl5 error messages
This is a Pythonism (and C and other such languages). Older Perl has the
same behavior that you can't index a string that way, but must us
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #131273]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=131273 >
Not a big deal as it was changed yesterday, but still:
Code:
say ^5
I agree with you, but we can do better.
Usually I'm against all perl5 error messages, but I believe that this case is
different. I am sure that this is what most people attempt to do at some point.
I also know for sure that this is what I did a couple of times when I was
starting with Perl 6. I al
Fixed with 31be51284e70badd8ed , tests needed.
> On 8 May 2017, at 20:25, Aleks-Daniel Jakimenko-Aleksejev (via RT)
> wrote:
>
> # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
> # Please include the string: [perl #131272]
> # in the subject line of all future correspondence about t
Fixed with 31be51284e70badd8ed , tests needed.
> On 8 May 2017, at 20:25, Aleks-Daniel Jakimenko-Aleksejev (via RT)
> wrote:
>
> # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
> # Please include the string: [perl #131272]
> # in the subject line of all future correspondence about t
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #131272]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=131272 >
Code:
say ^5 .BagHash.pickpairs(2.5);
Result:
(1 => 1 4 => 1)
Code
On Mon, 10 Oct 2016 06:05:10 -0700, alex.jakime...@gmail.com wrote:
> Code:
> say “hello”[2]
>
> Result:
> Index out of range. Is: 2, should be in 0..0
> in block at -e line 1
>
> Actually thrown at:
> in block at -e line 1
>
>
>
> IRC discussion starting here:
> https://irclog.perlgeek.
On Mon, 10 Oct 2016 06:05:10 -0700, alex.jakime...@gmail.com wrote:
> Code:
> say “hello”[2]
>
> Result:
> Index out of range. Is: 2, should be in 0..0
> in block at -e line 1
>
> Actually thrown at:
> in block at -e line 1
>
>
>
> IRC discussion starting here:
> https://irclog.perlgeek.
On Mon, 08 May 2017 06:05:36 -0700, alex.jakime...@gmail.com wrote:
> Code:
> my $x = (^5).BagHash;
> say $x.grab(NaN);
> say $x
>
> Result:
> [1 2 3 0 4]
> BagHash.new()
>
>
> In other words, it works like if you grabbed ∞ or *. It should
> probably error out in some way.
Thank you for the rep
On Mon, 08 May 2017 06:05:36 -0700, alex.jakime...@gmail.com wrote:
> Code:
> my $x = (^5).BagHash;
> say $x.grab(NaN);
> say $x
>
> Result:
> [1 2 3 0 4]
> BagHash.new()
>
>
> In other words, it works like if you grabbed ∞ or *. It should
> probably error out in some way.
Thank you for the rep
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #131270]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=131270 >
Code:
my $x = (^5).BagHash;
say $x.grab(NaN);
say $x
Result:
[1 2 3
Thank you for your report!
However, doc bugs are reported on github. I have moved your ticket there:
https://github.com/perl6/doc/issues/1299
On 2017-05-07 20:49:39, ben-goldb...@hotmail.com wrote:
> On https://docs.perl6.org/language/rb-nutshell, it says:
>
>
> * No space allowed before the open
16 matches
Mail list logo