Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2022-08-15 06:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?