Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

by likbez (Sexton)
on Sep 11, 2020 at 16:45 UTC ( [id://11121625]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found