Re: [perl #129843] [LTA] Indexing on a Str throws generic “out of range” message which is less than awesome (“hello”[2])

2017-05-08 Thread Brandon Allbery
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

Re: [perl #129843] [LTA] Indexing on a Str throws generic “out of range” message which is less than awesome (“hello”[2])

2017-05-08 Thread Joachim Durchholz
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 > wrote: Usually I'm against all perl5 error messages This is a Pythonism (and C and other such

Re: [perl #129843] [LTA] Indexing on a Str throws generic “out of range” message which is less than awesome (“hello”[2])

2017-05-08 Thread Aleks-Daniel Jakimenko-Aleksejev
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,

Re: [perl #129843] [LTA] Indexing on a Str throws generic “out of range” message which is less than awesome (“hello”[2])

2017-05-08 Thread Brandon Allbery
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