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
<perl6-bugs-follo...@perl.org <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 that's a bad thing.

It all comes down to whether you want the usual semantics of [] apply to character positions in a string. If [] can to to the LHS, and Perl6 strings are immutable, then having [] would be a mistake. If accessing individual characters in a string is a bad idea in general (a defensible position in the age of Unicode), then having [] for strings might be a bad idea even if you could otherwise implement that.

If the mental model for Perl6 strings is "array of characters" though, then having [] for uniformity is probably a good idea, and more important than keeping Perl5 restrictions.

Just my 2 cents from the sideline.
Disclaimer: I'm much more an Abstract Data Type guy than a Perl guy, so feel free to ignore because inappropriate.

Reply via email to