Research on A New Abstract Programming Language for Generic Constraints

Z. K. Zuo,C. J. Wang,H. H. Shi,W. P. Xie,Z. You,J. X. Lu
DOI: https://doi.org/10.2991/aiie-15.2015.79
2015-01-01
Abstract:Generic programming has emerged as a paradigm for the development of highly reusable and safe software libraries. Generic constraint mechanism explicitly describes which concrete types can instantiate generic types. As it can detect and verify the validity of generic parameter instantiated, thereby guarantee dependability and safety of generic programming. Many modern programming languages support basic generic constraints. The paper reports on a comparison of facilities for generic constraints in five programming languages: C++, ConceptC++, Java, C#, named type constraints, and then presents a new abstract programming language: Apla, which supports for generic constraints base on algebraic structures. As language increasingly support generic constraints, it is necessary that language designers understand the constraint features to enable the effective use of generics and that their absence can cause difficulties for programmers.
What problem does this paper attempt to address?