Turbo Pascal的类型推断

Ole I. Hougaard, M. I. Schwartzbach, Hosein Askari
{"title":"Turbo Pascal的类型推断","authors":"Ole I. Hougaard, M. I. Schwartzbach, Hosein Askari","doi":"10.7146/BRICS.V2I8.19511","DOIUrl":null,"url":null,"abstract":"Type inference is generally thought of as being an exclusive property of the functional programming paradigm. We argue that such a feature may be of significant benefit for also standard imperative languages. We present a working tool (available by WWW) providing these benefits for a full version of Turbo Pascal. It has the form of a preprocessor that analyzes programs in which the type annotations are only partial or even absent. The resulting program has full type annotations, will be accepted by the standard Turbo Pascal compiler, and has polymorphic use of procedures resolved by means of code expansion. Keywords: imperative languages, type inference.","PeriodicalId":167132,"journal":{"name":"Softw. Concepts Tools","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1995-01-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"9","resultStr":"{\"title\":\"Type Inference for Turbo Pascal\",\"authors\":\"Ole I. Hougaard, M. I. Schwartzbach, Hosein Askari\",\"doi\":\"10.7146/BRICS.V2I8.19511\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Type inference is generally thought of as being an exclusive property of the functional programming paradigm. We argue that such a feature may be of significant benefit for also standard imperative languages. We present a working tool (available by WWW) providing these benefits for a full version of Turbo Pascal. It has the form of a preprocessor that analyzes programs in which the type annotations are only partial or even absent. The resulting program has full type annotations, will be accepted by the standard Turbo Pascal compiler, and has polymorphic use of procedures resolved by means of code expansion. Keywords: imperative languages, type inference.\",\"PeriodicalId\":167132,\"journal\":{\"name\":\"Softw. Concepts Tools\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1995-01-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"9\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Softw. Concepts Tools\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.7146/BRICS.V2I8.19511\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Softw. Concepts Tools","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.7146/BRICS.V2I8.19511","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 9

摘要

类型推断通常被认为是函数式编程范式的专有属性。我们认为这样的特性对标准命令式语言也有很大的好处。我们提供了一个工作工具(可从WWW获得),为Turbo Pascal的完整版本提供了这些好处。它具有预处理器的形式,用于分析只有部分类型注释甚至没有类型注释的程序。生成的程序具有完整的类型注释,将被标准Turbo Pascal编译器接受,并且具有通过代码扩展解决的过程的多态使用。关键词:命令式语言,类型推断。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Type Inference for Turbo Pascal
Type inference is generally thought of as being an exclusive property of the functional programming paradigm. We argue that such a feature may be of significant benefit for also standard imperative languages. We present a working tool (available by WWW) providing these benefits for a full version of Turbo Pascal. It has the form of a preprocessor that analyzes programs in which the type annotations are only partial or even absent. The resulting program has full type annotations, will be accepted by the standard Turbo Pascal compiler, and has polymorphic use of procedures resolved by means of code expansion. Keywords: imperative languages, type inference.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信