WorldCIST'13 -The 2013 World Conference on Information Systems and Technologies

Full Program »

Obtaining Multiple Dispatch in Hybrid Statically and Dynamically Typed Languages

Francisco Ortin
University of Oviedo
Spain

Miguel Garcia
University of Oviedo
Spain

Jose Manuel Redondo
University of Oviedo
Spain

Jose Quiroga
University of Oviedo
Spain

Abstract:
Multiple dispatch is a feature provided by some programming languages, in which the actual method to be executed is dynamically determined by the runtime types of its arguments. Although some programming languages such as CLOS, Xtend and Dylan provide this feature, many widespread languages such as Java, C# and C++ only support single dispatch by means of dynamic binding. Therefore, different implementation techniques are commonly used to obtain multiple dispatch from within these single-dispatch languages. We propose a new approach to obtain multiple dispatch in single-dispatch hybrid static and dynamic typing languages. Using C# as an example, the proposed approach is compared with the existing ones, considering factors such as software maintainability and readability, code size, parameter generalization, compile-time type checking, and runtime performance.

 

Powered by OpenConf®
Copyright ©2002-2012 Zakon Group LLC