In my daily wanderings, I came across the Rindolf discussion which has sprung up over at use.perl.org and noticed that some fellow monks have too found this discussion and contributed to it - For those unfamiliar with this thread, Shlomi Fish has proposed a Perl 5 based dialect in direct counterance to some of the directions for change proposed for Perl 6.

In this thread, Shlomi Fish is quite vocal on some minor (and some not so) criticisms which some have with Perl and proposes to address these in this offshoot language. Specific criticisms and directional specifications raised include:

  1. The -> operators and . will remain the same as in Perl 5.
  2. Classes will be declared with a class { ... } construct and several can exist in the same module.
  3. An on_destroy() primitive that calls a callback when it is garbage collected.
  4. Globs will be replaced by return values.
  5. local is gone. Long live my() and our().
  6. Distinction between => and ,. No more possible hashes mishaps.
  7. Re-organization features: easier stubs programming, a better garbage collector that can handle circular references, Full Unicode support.
  8. A command-line switch that toggles proper tail recursion on and off.
  9. Factories: setting the default behaviour of Perl in an Object-Oriented way. You can keep several same settings at the same time, and they will be de-allocated when they go out of scope.
  10. Unambiguous x operator.
  11. General Depreciation of the scalar() context. scalar(@a) will be replaced by count(@a). Reversing a string will be performed by a function other than reverse()
  12.  

To my mind much of this proposed direction for Perl 5 is a flight of fancy, particularly given some of the follow up comments in the thread where Shlomi Fish admitted not fully understanding some of the aspects of the language proposed to be changed - However, this discussion has raised some interesting questions to my mind ...

 

 

perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'


In reply to Rindolf, Perl 6 and Wish lists by rob_au

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.