Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 wandering the Monastery: (None)
    As of 2024-04-25 01:13 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found