Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: strong typing

by chromatic (Archbishop)
on Dec 16, 2004 at 00:14 UTC ( #415238=note: print w/replies, xml ) Need Help??


in reply to Re^4: strong typing
in thread (Completely OT) - Hero(i)n programming language on Slashdot

Those aren't types in Perl. Those are values.

Replies are listed 'Best First'.
Re^6: strong typing
by jdporter (Canon) on Dec 16, 2004 at 03:21 UTC
    Huh? You're saying numeric is a value? No. It's a type. Values have types. It's the type of "foo" that perl is complaining about, not its value.

      Containers have types in Perl. Values don't. That's how (I say) Perl's type system works.

      (Okay, that's not entirely true, but if you need gory details, look in sv.h and Devel::Peek. My point is that Perl doesn't expose the types of values to users.)

        O.k., my point exactly. How things work under the covers is, to some extent (some great extent, in the case of highly dynamic languages like perl) irrelevant to the users of the language. As far a perl programmers are concerned, 5 and "foo" have different types. perl tells us as much. We really don't care whether perl determines their types by some container tagging system, or whatever other means.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-11-30 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?