Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^5: Why Perl in 2020

by LanX (Sage)
on Jan 07, 2021 at 13:25 UTC ( #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

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?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11126532]
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: (2)
As of 2021-12-06 02:48 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (31 votes). Check out past polls.