On-the-fly grammer redefintion should not affect the actual way in which the type system works. It might play some tricks on the programmer so that a Str type annotation is turned into a Num type annotation, but while that would be kind of silly, it would not affect the way the underlying type system works.

Actually, Perl 6 will try it's best to be as statically typed as possible, including performing some type inference when there are no programmer written type annotations present. Anything which it cannot figure out during the compile phase, it will leave until runtime (which is fairly common in other "staticly typed" languages like Java, etc.). This combination of compile time static type analysis and runtime type constraint checks is sometimes referred to as a hybrid type system, but once again it is not unique to Perl 6 by any means.

However, this may or may not be what they mean. Perl 6 will also combine a nominal type system (types are compared by names) and a structural type system (types are compared by their defined structure). This could be seen as a hybrid type system too, however this too is not unique to Perl 6 either.

So possibly they mean that Perl 6 is unique becuase it's type system is; as static as it can be and as dynamic as it needs to be, will check types by name if it can or by structure if it needs to, and in the end is entirely optional.

-stvn

In reply to Re^2: Perl 6: Static/Dynamic Strong/Weak Type Systems by stvn
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.