Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 ( #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
Node Status?
node history
Node Type: note [id://11121594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2020-10-30 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (283 votes). Check out past polls.

    Notices?