Okay, I truly don't mean to be harsh or anything like that, but I really can't see the advantage of using this language instead of pure-Perl code.

Consider how much this differs from your last example:
$Sp[0] = "gsmith"; $Sp[1] = "rsmith"; if( ! inArray( $salesperson, \@Sp ) ) { return E_INVALID_SALESPERSON; }

When I started reading your meditation I thought of some really nice ideas regarding parameter validation and such.

I think that in order to write a parameter validation mini-language you should keep yourself from rewriting Perl with another syntax.

As a matter of fact, I think that it shouldn't be a programming language but rather a sort of description language. Then you could have pluggable types or modifiers for validation. Pluggable input and output handlers. Maybe pluggable filters. You could come up with a sort of inheritance tree and so on. I think something along these lines would be more appropriate.

However, remember this is just my opinion. Others may (and probably will) disagree with me. Others may agree. If you feel this way is what works best for you, then go for it, it's always nice to have plenty of alternatives out there on the CPAN. You asked for constructive criticism and this was my best effort at it. ;-)


acid06
perl -e "print pack('h*', 16369646), scalar reverse $="

In reply to Re: RFC: Verify Interpreter and Language by acid06
in thread RFC: Verify Interpreter and Language by exussum0

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.