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

Re^5: Why Perl in 2020

by LanX (Saint)
on Jan 07, 2021 at 13:25 UTC ( [id://11126532]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Why Perl in 2020
in thread Why Perl in 2020

Are you sure this isn't just an example of autoboxing of primitives like in JavaScript without explicit String class as wrapper for primitive string type ...etc? °

Perl can/could do the same see autobox

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) see https://developer.mozilla.org/en-US/docs/Glossary/Primitive

Replies are listed 'Best First'.
Re^6: Why Perl in 2020
by Arunbear (Prior) on Jan 07, 2021 at 16:51 UTC
    I'm not convinced Python actually has primitives in that sense - at least I'm not aware of any way of distinguishing objects from non-objects (the type function always returns some class or other, unlike it's JS counterpart typeof).
      They could fake it by implicitly bending the method-call operator . much the same way autobox does it with ->

      In the end it's only a question of improving performance.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found