会议论文详细信息
Technical Communications of the 28th International Conference on Logic Programming
A Gradual Polymorphic Type System with Subtyping for Prolog
Spyros Hadjichristodoulou
Others  :  http://drops.dagstuhl.de/opus/volltexte/2012/3645/pdf/43.pdf
PID  :  42666
来源: CEUR
PDF
【 摘 要 】

Although Prolog was designed and developed as an untyped language, there have been numerous attempts at proposing type systems suitable for it. The goal of research in this area has been to make Prolog programming easier and less error-prone not only for novice users, but for the experienced programmer as well. Despite the fact that many of the proposed systems have deep theoretical foundations that add types to Prolog, most Prolog vendors are still unwilling to include any of them in their compiler’s releases. Hence standard Prolog remains an untyped language. Our work can be understood as a step towards typed Prolog. We propose an extension to one of the most extensively studied type systems proposed for Prolog, the Mycroft-O’Keefe type system, and present an implementation in XSB-Prolog. The resulting type system can be characterized as a Gradual type system, where the user begins with a completely untyped version of his program, and incrementally obtains information about the possible types of the predicates he defines from the system itself, until type signatures are found for all the predicates in the source code.1998 ACM Subject Classification D.1.6. Logic Programming, D.3.3. Language Constructs andFeatures

【 预 览 】
附件列表
Files Size Format View
A Gradual Polymorphic Type System with Subtyping for Prolog 318KB PDF download
  文献评价指标  
  下载次数:10次 浏览次数:7次