Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Griping about Typing

by broquaint (Abbot)
on Apr 18, 2002 at 16:55 UTC ( #160268=note: print w/ replies, xml ) Need Help??


in reply to Griping about Typing

What on Earth is so great about strong typing that I have to have it?
There is nothing so great about strong typing that you have to have it. That said, it can be wonderfully useful when done, and done correctly (see. Dominus' great article about strong typing).

If it is done correctly, then if you ever have a type error then something is seriously wrong in your code, period. The reason you might want strong typing in your 'compiler' is to produce faster and slimmer code. The thing executing the strongly typed code will never have to guess whether it's dealing with an float or a double as it will be the right type.

With that said, there aren't a great deal of advantages to the programmer with strongly typed code. They'll never get unexpected results due to mathematical imprecisions between type casts. Subsequently code will execute as you expect it to, not how the thing executing it guesses it should be executed.
HTH

_________
broquaint

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2016-06-29 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (384 votes). Check out past polls.