5. Dynamic Programming
Both static typing and dynamic typing have their advantages. Dynamic typing can provide for quicker development times and easier interoperability with dissimilar systems. Static typing enables the compiler to find classes of errors. Because the compiler can make those checks, runtime checks can be streamlined, which results in better performance. C# is a statically typed language and will remain one. However, for those times when dynamic languages provide more efficient solutions, C# offers dynamic features. Those features enable you to switch between static typing and dynamic typing when the need arises. The wealth of features available for static typing means that most of your C# code will be statically typed. This chapter ...
Get More Effective C# (Includes Content Update Program): 50 Specific Ways to Improve Your C#, 2nd edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.