This entire discussion is only marginally on topic-- seeing as it's a Perl forum, I suppose discussions of future Perls is almost OK. However, Perl 6 has numerous mailing lists devoted to it that would be better places to complain about the changes that are proposed.
However, in the spirit of problem solving, creative thinking, and doing more than one way I offer the following:
The dot operator is nice. Too bad if they are going to change all current uses of -> into . for both method calls and indirect references. I like the arrow for indirection since it gets that whole pointer notion across. OTOH, I like the dot for method calls, it's similar to other languages (so I have to mode-flip less) and then we can all start to comfortably borrow ideas and maybe even code more easily from other languages. The thing I most hope to see with a Visual Basic-like
with $Foo.( set_location( 'boot camp' ), drop(), give_me( 50 ) ); where the function calls internal to the with $Foo. will all be done on the $Foo instance.
As for concatenation. Simplest way to concatenate without white space:
my $new_var = "$old_x$old_y"; Besides, interpolation makes the intent of the statement more obvious. In the situations where the things being concatenated are not themselves values like scalars, list items, or hash members, then the _ is no less clear than . and would need to be changed anyway to accomodate the . change in method calls.
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.