However, there are some people whose mindset just tends to prefer a lot of strict rules.

Ya! That's me!

People who prefer Pascal over BASIC, if you can imagine.

*waves hands* I even started in BASIC, back in, um, Middle School? But once I got to college, and Pascal and Scheme were the order of the day, I never looked back. I’m even trying to convince a co-worker to give up Visual Basic for C#, just so we can re-write, convert, and cleanup the vast stock of VB code in our environment.

People who use strict and warnings even for one-liners and obfuscations.

Well, maybe not that much. OTOH, I don't write obfuscations; it's enough of a struggle to me to write clear code.

Those people would probably appreciate the ability to force all subs to be predefined, for example.

Actually, no. I tend to think that would make the code less clear, not more. If I recall alright, it's mostly done in other languages due to compiler needs more than anything. I'd much rather have something where subs get "auto-rendered" into POD, so it's easier to write comments on subroutines (if you so wish); I think that would be much more useful, in terms of what someone reading your code would need, than any pre-declaration concept.

*ponders finding/writing such code..."Pod::Auto, anyone?"*

The really neat thing about these pragmas, if they existed, would be that we could say, "C gives you enough rope to hang yourself, but Perl gives you enough rope to tie yourself up."

HEH. *evil grin*

----Asim, known to some as Woodrow.


In reply to Re^2: When -w and use strict aren't enough... by Asim
in thread When -w and use strict aren't enough... by RMGir

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.