I don't find strong typing to be a very useful concept in dynamic lanaguages. I'm not even sure it makes sense to talk about strong typing. Types are determined by the interpreter at run time. The type of a piece of data is carried along with the data so there is only 1 possible way for the interpreter to treat it - it must treat it the way that type should be treated.

The only way to break this is to allow programs to pick a pointer into arbirary memory and have the interpreter use it as a value, a feature so dangerous (and almost certainly not what you want to do) that none of the dynamic languages I know allow it (except at the interface to C, e.g. perl's XS system).

So perl and other dynamic languages are strongly typed but it's not like someone sat down and said "I'm going to make my language strongly typed", it's because a weakly typed dynamic language doesn't really make much sense.


In reply to Re: Perl 6: Static/Dynamic Strong/Weak Type Systems by fergal
in thread Perl 6: Static/Dynamic Strong/Weak Type Systems by tomazos

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.