in reply to Re^4: Opinion: where Perl5 wasn't attractive for me
in thread Opinion: where Perl5 wasn't attractive for me

Considering that this is a question of adding the 'feature' to Perl, the fact that Python doesn't have block scoping doesn't really factor into it.

Also, note that the second assignment is a typo, and IS actually the first (and only) instance of that specific variable name. (I've added a comment to point it out)

  • Comment on Re^5: Opinion: where Perl5 wasn't attractive for me

Replies are listed 'Best First'.
Re^6: Opinion: where Perl5 wasn't attractive for me
by LanX (Saint) on Nov 19, 2014 at 20:29 UTC
    You're getting it wrong ... comparing and learning from experiences other language designers made is helpful.

    If someone says declaration should work like in Ruby or Python it's valuable to show that those languages pay a prize for it.

    And I don't wanna miss block scope...

    Though I don't see a reason to apologize now... If you are not interested in comparing design, ignore me. :)

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

      Two sides of the same coin I suppose.

      "Can't just add this to perl because it will break things." vs "In order to add this without breaking things, you need to remove core features."

      I'm not sure what you would have to apologize for... I'm pretty sure we are arguing the same thing from different perspectives.

      Now I'm thinking it is like a Language of Theseus. How may core features do you swap out before it is no longer perl? ;)