in reply to Re^2: getting rid of special features
in thread getting rid of costly special features
actually I don't wanna get rid of the feature but of the syntax.
Then we are (mostly) in violent agreement.
I still think that ++ being special-cased for strings is a rather harmless example, and there is another argument for keeping it: It's nicely symmetric with how ranges of strings work:
$ perl -wE 'say for "a".."e"' a b c d e
which might be used a bit more often than direct increment on strings.
Now that we've already having this discussion, I'd like to point out some more Perl 5 features that could be reworked to much saner:
But in the long run, removing cruft is only a small part of evolving Perl 5. I firmly believe that in order to stay competitive, it needs a type system(*), proper subroutine signatures and a less bare-bones OO system in core.
(*) If the need for a type system isn't obvious to you, let me just tell you that at least 95% of all the character encoding trouble in Perl 5 could easily be avoided by having separate types for text strings and byte buffers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: getting rid of special features
by johngg (Canon) on Feb 17, 2013 at 18:26 UTC | |
by soonix (Chancellor) on Feb 17, 2013 at 21:40 UTC | |
by LanX (Saint) on Feb 18, 2013 at 00:28 UTC | |
by Anonymous Monk on Feb 18, 2013 at 00:31 UTC | |
|
Re^4: getting rid of special features
by LanX (Saint) on Feb 17, 2013 at 20:06 UTC | |
by moritz (Cardinal) on Feb 17, 2013 at 20:36 UTC | |
by LanX (Saint) on Feb 17, 2013 at 20:55 UTC | |
|
Re^4: getting rid of special features
by LanX (Saint) on Feb 17, 2013 at 20:15 UTC |