Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Why not perl have raw/native type

by Corion (Pope)
on Jan 09, 2020 at 08:57 UTC ( #11111233=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why not perl have raw/native type
in thread Why not perl have raw/native type

Actually, all informations are available at compile time ...

Divining that information is the topic of Escape Analysis, and its far from trivial to find what values will remain local to a subroutine in the general case.

If you want to put more restrictions on the "native" type, maybe you can make this easier, but that amounts to basically having a second set of data types that are not interoperable with the rest of Perl.

  • Comment on Re^3: Why not perl have raw/native type

Replies are listed 'Best First'.
Re^4: Why not perl have raw/native type
by LanX (Archbishop) on Jan 09, 2020 at 16:59 UTC
    Well, my point is that there is a difference between
    • "you can't"
    • "it is not trivial"

    Actually I'd prefer to see a use case from the OP before continuing further.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2020-06-01 17:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (5 votes). Check out past polls.

    Notices?