• DocumentCode
    2077276
  • Title

    Supporting dynamic and static typing by means of union and intersection types

  • Author

    Ortin, Francisco ; Garcia, Miguel

  • Author_Institution
    Comput. Sci. Dept., Univ. of Oviedo, Oviedo, Spain
  • Volume
    2
  • fYear
    2010
  • fDate
    10-12 Dec. 2010
  • Firstpage
    993
  • Lastpage
    999
  • Abstract
    Although static typing provides early type error detection, better legibility and abstraction, and more opportunities for compiler optimizations, dynamic typing supplies a high degree of runtime adaptiveness, providing an agile and interactive development suitable for rapid prototyping. In this article, the minimal core type system of a programming language which main aim is to provide the benefits of both dynamic and static typing is presented. Keeping explicit typing, implicit type inference is introduced to combine dynamic and static typing in the same programming language. Union and intersection types are customized to express the dynamism of implicitly typed references. The main benefits of our work are an early type error detection in dynamic code, the integration of dynamic and static code in the same programming language, and a notable optimization of the generated code.
  • Keywords
    optimisation; programming languages; compiler optimizations; dynamic support; error detection; interactive development; intersection types; minimal core type system; programming language; static typing; Context; Manganese; Tin; Programming languages; dynamic typing; intersection types; type systems; union types;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Progress in Informatics and Computing (PIC), 2010 IEEE International Conference on
  • Conference_Location
    Shanghai
  • Print_ISBN
    978-1-4244-6788-4
  • Type

    conf

  • DOI
    10.1109/PIC.2010.5687860
  • Filename
    5687860