>
Fa   |   Ar   |   En
   Open and Closed Worlds for Overloading: a Definition and Support for Coexistence  
   
نویسنده Camarao Carlos ,Vasconcellos Cristiano ,Figueiredo Lucilia ,Nicola Joao
منبع journal of universal computer science - 2007 - دوره : 13 - شماره : 6 - صفحه:874 -890
چکیده    The type system of haskell and some related systems are based on an open world approach for overloading. in an open world, the principal type of each overloaded symbol must be explicitly annotated (in haskell, annotations occur in type class declarations) and a definition of an overloaded symbol is required to exist only when overloading is resolved. in a closed world, on the other hand, each principal type is determined according to the types of definitions that exist in the relevant context and, furthermore, overloading resolution for an expression considers only the context of the definition of its constituent symbols. in this paper we formally characterize open and closed worlds, and discuss their relative advantages. we present a type system that supports both approaches together, and compare the defined system with haskell type classes extended with multi-parameter type classes and functional dependencies. we show in particular that functional dependencies are not necessary in order to support multi-parameter type classes, and present an alternative route.
کلیدواژه Type system ,type inference ,constrained polymorphism ,closed and open world approaches for overloading
آدرس Universidade Federal de Minas Gerais, Universidade Federal de Pelotas, Universidade Federal de Ouro Preto, Universidade Federal de Minas Gerais
پست الکترونیکی joaoraf@dcc.ufmg.br
 
     
   
Authors
  
 
 

Copyright 2023
Islamic World Science Citation Center
All Rights Reserved