Datasheet

780
Running with the Dynamic Language Runtime
Add to that the reality that C# is making runtime decisions about every
single variable throughout the entire run of the program. That’s a whole
lot of extra processing that we could have avoided if we had just done that
static typing.
The take-home here is that using dynamic types makes your programming
job much easier and your troubleshooting job much harder. If you are writ-
ing a utility script for your own use, and don’t care if it occasionally crashes
with a type mismatch, then use dynamic. If you are writing a backup script
for a hospital and the lives of thousands are at stake, I advise static types.
53_563489-bk08ch01.indd 78053_563489-bk08ch01.indd 780 3/19/10 8:17 PM3/19/10 8:17 PM