I have distinct reservations about the 'but' keyword.

Talk to Larry about that. I'm using established Perl6 syntax. And I don't share your opinion about the alleged implications; particularly not because this is the Perl6 “but”, not the English “but”.

You repeatedly mentioned having read the Apocalypses and having followed Perl6 development for a while; I expected you'd know that this sort of thing would be enabled by Perl6. But you kept railing against how Perl6 is going to handle it.

As far as having setter code inline or keeping it externally in a class or some such like, I believe both are necessary. There are many cases where type-based validation will suffice (the vast majority, judging by the kind of validation I predominantly write in my code), and I don't want to have repetition for that. There are some cases where I'll want to validate on state, and being able to use inline code would be beneficial with those. I never argued against the latter; I just kept trying to show you that the former is quite desirable as well. The type system won't be the only way to validate in Perl6; notice Larry said “most such cases” would be handled by the type system in Perl6, not all.

So we've really been more in agreement than not for most of the duration of this argument…

Makeshifts last the longest.


In reply to Re^20: Assignable Subroutines by Aristotle
in thread Assignable Subroutines by dragonchild

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.