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:
- The -> operators and . will remain the same as in Perl 5.
- Classes will be declared with a class { ... } construct and several can exist in the same module.
- An on_destroy() primitive that calls a callback when it is garbage collected.
- Globs will be replaced by return values.
- local is gone. Long live my() and our().
- Distinction between => and ,. No more possible hashes mishaps.
- Re-organization features: easier stubs programming, a better garbage collector that can handle circular references, Full Unicode support.
- A command-line switch that toggles proper tail recursion on and off.
- 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.
- Unambiguous x operator.
- 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()
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 ...
- Are you happy with the directions proposed for Perl 6? If not, why? What direction will your coding take beyond the Perl 5 realm? I'd be interested to hear from some who like Shlomi Fish are positively unimpressed with the proposed direction for Perl 6.
- And prehaps more interestingly, what behaviours of Perl 5 would you like to change if given the chance?
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.