Problems? Is your data what you think it is? | |
PerlMonks |
Re: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staffby Corion (Patriarch) |
on Sep 10, 2020 at 07:03 UTC ( [id://11121539]=note: print w/replies, xml ) | Need Help?? |
Highly desirable Make a semicolon optional at the end of the line, if there is a balance of brackets on the line and the statement looks syntactically correct ("soft semicolon", the solution used in famous IBM PL/1 debugging compiler). Why would this be highly desirable? Consider:
versus
Adding your change idea makes the parser even more complex and introduces weird edge cases. I think even Javascript now recommends using semicolons instead of eliding them at the end of a line. Update: Some examples where ASI in Javascript goes wrong:
In Section
Meditations
|
|