Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: (FoxUni) Re: Griping about Typing

by kappa (Chaplain)
on Apr 19, 2002 at 08:23 UTC ( #160456=note: print w/ replies, xml ) Need Help??


in reply to Re: Griping about Typing
in thread Griping about Typing

You wrote:

Occasionally, I'm told "strong typing helps prevent programmer error", with no explanation of how it prevents errors. (Okay, so it stops me from adding a string and an int. If I was adding strings and ints and expecting to get something useful, I have deeper problems than weak typing.)
Please consider this C code:
char name[] = "miguel"; int st_len = 0, namel; namel = strlen(name); st_len += name;
See my error (actually a typo)? See how gcc warnings (which are kinda weak strong typing) save my time?


Comment on Re: (FoxUni) Re: Griping about Typing
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-08-01 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (28 votes), past polls