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

Re^7: What technical benfits perl offers over python + few more questions.

by talexb (Chancellor)
on Nov 13, 2021 at 21:55 UTC ( [id://11138798]=note: print w/replies, xml ) Need Help??


in reply to Re^6: What technical benfits perl offers over python + few more questions. (generator/iterator/closure)
in thread What technical benfits perl offers over python + few more questions.

Thanks for the explanation -- the difference is that Perl can return a CODEREF, but C doesn't have that functionality. It would be possible to initialize a function to behave like an iterator, but without a great deal of jumping through hoops, you wouldn't be able to run multiple different iterators, as your Perl example could.

That's OK -- without C, you wouldn't have pretty much any of the modern languages I can think of (Perl, Python, PHP). And C is still an amazing language.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

  • Comment on Re^7: What technical benfits perl offers over python + few more questions.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138798]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found