Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
Jar. Jar!...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-03-29 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (352 votes). Check out past polls.