in reply to Re: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
in thread What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^2: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

Replies are listed 'Best First'.
Re^3: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
by Tux (Canon) on Sep 12, 2020 at 09:24 UTC

    I cannot answer the why in that question, but the only place where *I* use it on a very regular basis is

    my @foo = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { m/^(.*(\d+).*)$/ } @bar;

    Which works evenly fine when semi-colons are added.

    Following the complete discussion, I wonder why you persist. To me it is obvious that Perl is not (or should not be) your language of choice.

    If you really think trailing semi-colons should be omitted, do find a language that allows it. You have come up with exactly ZERO arguments that will convince the other users of perl and perl language designers and language maintainers.

    To me however, all the counter-arguments were very insightful, so thank you for starting it anyway.

    /me wonders how many users would stop using perl completely if your rules would be implemented (wild guess 90%) and how many new users the language would gain (wild guess 1%)


    Enjoy, Have FUN! H.Merijn
Re^3: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
by ikegami (Patriarch) on Sep 14, 2020 at 22:38 UTC

    can you please explain why Perl designers took some efforts to allow omitting semicolon before closing brace? >

    Because it's unambiguous, and because it allows one to treat it as a statement separator (like the comma) instead of statement terminator.

    Getting rid of the others would cause countless ambiguities.

    A reply falls below the community's threshold of quality. You may see it by logging in.