I often read arguments for and against strict typing vs. no typing as in Perl.

Let me clarify that Perl does have static typing - it is implied by sigils, and works at compile time. Any expression that begins with @ returns a list or an Array, for example.

However instead of type check failures, you get coercions in many places, which is why you often don't recognize them as types.

Other than possibly catching errors and thereby making for more robust programs, strict typing doesn't by itself contribute to any speed gains, does it?

Sure it does. The more a compiler knows about a program, the more it can optimize. Types are just one of those possible informations.

Also in Perl 6 types are very important for extensibility: you can write multi routines with the same name, where each of these single routines only accepts certain types. That means that you can "overload" those names for custom types. For example

class TurkishStr is Str { ... } multi sub uc(TurkishStr $x) { # handle upper-casing i to I with dot above somehow } # now you can write say uc $string; # and it will work both for ordinary stringsand for Turkish Strings.
It seems like just an excuse for macho programmers to snigger at sissy programmers such as me?

Never attribute to malice what may in fact just be your own state of not being well informed.

Perl 6 - links to (nearly) everything that is Perl 6.

In reply to Re: compiling perl scripts aka why is perl not as fast as C by moritz
in thread compiling perl scripts aka why is perl not as fast as C by punkish

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.