Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Why does Perl have typeglobs?

by LanX (Archbishop)
on Jul 10, 2014 at 00:49 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2019-08-25 08:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found