Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Having programmed in C for about 15 years, five of which I also used Pasal (ugh), I fall strongly on the "weak typing" side of this argument.

Strong typing strikes me as 'training wheels' for beginner programmers who may need guidance not to do Stupid Things. Once one moves from Pascal to C or Perl, the training wheels come off, and all manner of bizarre and odd things are possible. This includes trying to add incompatible types: C will give you a compile time warning but may try to do what you are asking, with unpredictable results. Perl will probably go ahead and give you something weird and trust that you know what you're doing.

That last bit is important. Perl trusts that you know what you're doing. It assumes if you really want to add "10 apples" and "20 apples", it will do its best to give you what it thinks is the answer. And that's the reason that I really enjoy Perl -- it gives me the same amount of freedom as C to do what I think is correct.

And I truly hope that Damian and Larry (and whoever else we can persuade) will allow stricter typing in Perl 6, but as just an option. Please.

Although Damian can be so darn persuasive. :)

--t. alex

"Nyahhh (munch, munch) What's up, Doc?" --Bugs Bunny

ps Fascinating thread.

In reply to Re: Griping about Typing by talexb
in thread Griping about Typing by Ovid

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others wandering the Monastery: (3)
    As of 2021-04-21 05:33 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found