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

Re: Why does Perl have typeglobs?

by LanX (Saint)
on Jul 10, 2014 at 00:49 UTC ( [id://1092988]=note: print w/replies, xml ) Need Help??


in reply to Why does Perl have typeglobs?

Larry combined features from different languages.

Symbol tables are common in LISP the oldest dynamic language, so you might rather ask why LISP does it that way.

I suppose it was done like this because this language prefers linked lists over lookup tables (like "hashes")

So having just one lookup table for all data types seems reasonable.

You might rather want to ask Larry why lexical variables were NOT stored in a similar structure after their introduction to Perl 5.

Cheers Rolf

(addicted to the Perl Programming Language)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found