Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by dsheroh (Monsignor)
on Sep 11, 2020 at 07:40 UTC ( [id://11121594]=note: print w/replies, xml ) Need Help??


in reply to Re^3: 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

The classic solution of this problem was invented in FORTRAN in early 50 -- it is a backslash at the end of the line.
And, again... exactly how much existing Perl 5 code has backslashes at the end of lines (commented or otherwise)? Approximately none. Boom. It breaks.
Question to you: how many times you corrected missing semicolon in your Perl scripts the last week ?
That's an easy one: Zero.

Which isn't to claim that I never forget semicolons, but I generally only get "possible missing semicolon"-type errors from the compiler once every month or two, and the compiler is often wrong about them. (There's still an error in my code, of course, but it's a different error, rather than the missing semicolon that the compiler suspected.)

Edit: Come to think of it, that closing parenthetical is an even bigger problem with this suggestion. If the compiler thinks I have a missing semicolon, but the real error is actually something else... then that means that, if the compiler says "hey, no problem, I'll just implicitly add that semicolon for you", then the actual error will still be there, undetected, waiting to strike at run-time when I least expect it. That is not an improvement!

  • Comment on Re^4: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2026-01-17 06:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (121 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.