Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Thoughts on replacing -> with .

by Jenda (Abbot)
on Jun 11, 2013 at 15:21 UTC ( #1038279=note: print w/replies, xml ) Need Help??

in reply to Thoughts on replacing -> with .

Changing the operators like this was a bad idea for Perl 6 and is an even worse idea for Perl 5. pragma or nopragma.

Introducing two incompatible yet similar syntaxes for no good reason would confuse the hell out of everyone, including those poor guys coming from the languages that use the dot. Especially them. They would see examples using ->, they'd see examples using dots, they'd see examples using dot that means concatenation, ...

Bad proposal, no cookie!

Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^2: Thoughts on replacing -> with .
by Arunbear (Prior) on Jun 12, 2013 at 16:38 UTC
    I agree that this is a bad idea for Perl 5, but why is it bad for Perl 6?

      For the same reasons, though on a very slightly lower scale. For very little gain, it causes a lot of confusion. Or rather would if Perl6 ever started being used and there was a chance to see and confuse Perl5 and Perl6 code.

      I don't think Perl6 ever gains a reasonable sized comunity. Not because it's several years late, though that adds to the problem, but because it went completely overboard with special characters. While they "simplified" sigils (read: changed the way they worked for years) and changed the object-method "separator" to something that's kinda resembling the standard (again changing things that worked for years causing confusion), they also introduced lots of new line-noise operators and their combinations and twists.

      If Perl5 looked like line noise to an unaccustomed eye, Perl6 looks like line noise even to those that love and use Perl for years.

      Enoch was right!
      Enjoy the last years of Rome.

        I have to say... sadly, that I agree with most of this. The -> operator being taken out rankled me quite a lot. I almost jumped into the minor list war that was going on over it and the concat op waaaaaaaaaaaaaaaaay back in the day but didn't feel qualified or entitled (since I was just following along, not doing any code/tests/etc). -> is very visual, almost like inline code flow charts.

        And I'm sorry to say this too but it's on point, even if sideways and not in reply to Jenda; I think it needs saying. If one character makes that much of a difference, one doesn't know how to type and should really put some effort into learning.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038279]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2018-06-23 11:23 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.