Great, thanks for the response. Just to clarify I am not advocating (nor do I really know anything about) Ruby on Rails, nor am I a Ruby programmer. Most everything in the post between "..to answer myself" and "Thanks, Matt" is verbatim snipped from slashdot posts in the referenced thread.

As I reread a few times my own post I realize the thrust is: Can you create "Domain Specific Languages" easily in Perl 6, and can they look like a natural language (i.e. a minimum of punctuation, use of space-separated words, etc.). I suspect yes though there certainly will be some caveats, for example the "has" reserved word in Perl 6 looks like Class::DBI's has_a() or has_many(). So a nasty semantic mess is possible.

classes are always open

I think I saw the same mentioned in a Perl 6 Synopsis.

thus adding it to every object of that class

However this I think is contradicted by (was it S4?) mentioned traits and how you can add methods to an object from another object. The converse of that would seem to be the smart match where the tree of inheritance is walked up to find a module that can/handles a method on your object. Sorry I'm newbie to 6.

As for embedding Python in HTML, sorry that was part of a copied snippet not a wish of mine for sure. I once had to customize a template for an Infoseek installation and it was just that.. it struck me as exceedingly ugly and painful, but maybe because they just used too much of it. This was some years ago..

Thanks, Matt


In reply to Re^2: Perl 6 and Ruby on Rails by mattr
in thread Perl 6 and Ruby on Rails by mattr

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.