Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
No, you're still ignoring the answers I already gave.

It's a meditation about using Perl as (partial) DSL for Ruby.

Again, the benefit of a shorter syntax is better understandable within a Ruby context, where passing callbacks is integral part of the language.

Mastering this technique in Perl takes much longer because a beginner has to understand prototypes and coderefs. Furthermore it's inconsistent in Perl because you can't use prototypes on methods.

And I already admitted that I wouldn't use this implementation in Perl.

Finally, debating about "beauty" of syntax is in the eye of the beholder, so lets agree that we disagree.

Cheers Rolf

( addicted to the Perl Programming Language)

) Personally, it took me years before I started to hack Perl in this way. Ruby people have to learn it from the start.

) Could this be the reason I didn't post it under CUFP? Surprise!

) And I don't like your inquisitory attitude to fight everything you don't understand in mosnter threads.


In reply to Re^8: 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 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 having an uproarious good time at the Monastery: (5)
As of 2022-12-04 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?