Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

  1. It demonstrates Perl's flexibility ¹ and the power of syntactic sugar.

    In other words: Python has no chance to mimic this! (AFAIK)

  2. Technically it's better readable than repeatedly doing stuff like

    my ($c_ref) =@_; $c_ref->(1);

    When using idioms which heavily rely on passing code-blocks it's just a matter of huffman-optimization to abstract the repeated parts away.

    I think you can't "see the use", because Perl doesn't use such idioms as often as Ruby does.

    Without the performance penalty, I'd use it straight away.

    (Keep in mind that many people ignore how slow Ruby is, for the sake of "pretty syntax")

  3. It's a good counter argument for people daemonizing Perl and adoring Ruby.

    I just read the first chapter of "7 Languages in 7 Weeks" which was a funny/shocking experience.

    For instance it praised many features like post-fix if or unless which stem from Perl³ ... just as if Ruby invented it.²

    Why not pirating some of the hype for us?

  4. It shows that an alternative parser for Perl5 could have attracted the audience that Ruby gained.

    Ruby's success is about pretty syntax on Perl semantics. Ruby's success is still heavily shocking the Pythonistas, who believe that Guido is God's (= John von Neumann's?) last prophet.

    (Moose showed how to cover the object model, covering the functional part closes the gap.)

  5. And it demonstrates possibilities to prototype future features w/o ignoring backwards compability.

  6. Last but not least, I already expected you objecting. =)

    But rather about b{ } being superfluous and expensive, while "easily" replaced by sub { } w/o performance loss.

Cheers Rolf

( addicted to the Perl Programming Language)

¹) "I'm every woman, its all in me" - Chaka Khan =)

²) Not talking about the strange and inflationary use of the term DSL within the Ruby community. If there is a mainstream language w/o Lisp's reader macros, which is predestinated to define DSLs, then it must be Perl. (Ok I don't know all maistream languages ... )

³) And are criticized in PBP! =)

In reply to Re^2: RFC: Simulating Ruby's "yield" and "blocks" in Perl by LanX
in thread RFC: Simulating Ruby's "yield" and "blocks" in Perl by LanX

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (7)
    As of 2018-07-20 20:37 GMT
    Find Nodes?
      Voting Booth?
      It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

      Results (441 votes). Check out past polls.