note
WaywardCode
<blockquote>If that is the case, then how can bareword filehandles be removed? Or are bareword filehandles supported in Perl7 but omitted from "Standard Perl" and our fellow monk WaywardCode was confused?</blockquote>
<p>I believe the situation itself is confusing, and I apologize if I have made it more so by assuming everyone had watched the conference talks already in my first post. Here is what I know:</p>
<p><b>EDIT</b>: The outline below assumes the worst outcome sometimes, and even <i>I</i> expect events to veer towards sanity as events unfold. Also, I'm not at all against perl changing, but I don't find the particulars given in these announcements very inspiring.</p>
<ul>
<li>Sawyer claimed the default settings (when you run perl with no switches or pragmas) in version 7 will change.
<ul><li>Obviously this will break old scripts unless they are fixed up or they add compatibility pragmas.</li>
<li>In the talk he says (paraphrasing) if you have bad code that doesn't run against the new defaults and you don't want to change it, you are going to be unhappy, and that's ok.</li></ul></li>
<li>He committed to turning on <code>strict</code> and <code>warnings</code> on video, and alluded to several more he'd like to add, such as <code>signatures</code></li>
<li>Meanwhile, brian d foy issues <a href="https://www.perl.com/article/announcing-perl-7/">an announcement post</a> claiming the likely removals are:
<ul><li>indirect object notation</li><li>bareword filehandles (except maybe the standard filehandles)</li><li>"fake" multidimensional arrays+hashes</li><li>change the prototype syntax to the new <code>:prototype</code> syntax</li>
</ul>
</li>
<li>People on p5p <a href="https://www.nntp.perl.org/group/perl.perl5.porters/2020/06/msg257609.html">are trying to figure out</a> how to make code with prototypes work across the versions. Maybe they will succeed, but the answer isn't obvious.</li>
<li>Some on p5p are calling for <code>use v7</code> to enable the features, rather than changing all the defaults, but so far <a href="https://www.nntp.perl.org/group/perl.perl5.porters/2020/06/msg257596.html">Sawyer says that won't accomplish his goals</a>. If you read also in <a href="https://www.nntp.perl.org/group/perl.perl5.porters/2020/06/msg257613.html">this mail you can see</a> that at least some on p5p were blindsided by this announcement (or possibly are feigning it, depending on which side of the argument you believe).</li>
<li>In foy's post, he says "your code should work if it's not a mess." Again, what's with the condescending talk about old code in these announcements. I mean, seriously, what gives!</li>
<li>Now, v7 is just v5.32 with some settings changed, and you can change them back by adding pragmas. <b>But,</b> the key thing to notice is that they explicitly offer that kind of compatibility for <b>one</b> major version. It's spelled out in the article, and mentioned in the video.</li>
<li>You might say "well I'll be dead by version 8" but:<ul><li>Perl versions before 5 came at a rapid clip</li><li>Sawyer said he was really looking forward to v8, and not in the sense of "my grandkids will love it"</li></ul></li>
<li>So in a couple years when they move to v8, until there's clarification, I have to assume we could lose our ability to get back to something resembling perl5 defaults altogether. In the video, Sawyer's example is that in v8 they would completely remove indirect object calls, but nothing was called out as perma-safe.</li>
<li>Some poor soul left <a href="https://www.nntp.perl.org/group/perl.perl5.porters/2020/06/msg257576.html">a question on p5p</a> about whether <code>strict</code> would really apply to v7 one-liners, and got no reply since Jun 26.</li>
<li>Meanwhile, at the <b>same conference</b> where we just heard Sawyer talking about how he is excited to be able to remove things from the language, we get a talk where he unveils a BNF-restricted "Standard Perl" which omits all kinds of additional perl-isms. He says it enforces code that he likes to write, and how he would like to teach the language to new people. Somehow, he did not predict that this would worry people like me. Whether it worries you is up to you.</li>
</ul>
11118665
11118740