understanding types data abstraction polymorphism理解类型数据抽象多态性.pdfVIP

understanding types data abstraction polymorphism理解类型数据抽象多态性.pdf

  1. 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
  2. 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
  3. 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多

1

ComputingSurveys,Vol17n.4,pp471-522,December1985

OnUnderstandingTypes,

Dataion,andPolymorphism

LucaCardelli

ATTBellLaboratories,MurrayHill,NJ07974

(currentaddress:DECSRC,130LyttonAve,PaloAltoCA94301)

PeterWegner

Dept.ofComputerScience,BrownUniversity

Providence,RI02912

Ourobjectiveistounderstandthenotionoftypeinprogramminglanguages,presentamodeloftyped,

polymorphicprogramminglanguagesthatreflectsrecentresearchintypetheory,andexaminetherelevance

ofrecentresearchtothedesignofpracticalprogramminglanguages.

Object-orientedlanguagesprovidebothaframeworkandamotivationforexploringtheinteraction

amongtheconceptsoftype,dataion,andpolymorphism,sincetheyextendthenotionoftypeto

dataionandsincetypeinheritanceisanimportantformofpolymorphism.Wedevelopaλ-calculus-

basedmodelfortypesystemsthatallowsustoexploretheseinteractionsinasimplesetting,unencumbered

bycomplexitiesofproductionprogramminglanguages.

Theevolutionoflanguagesfromuntypeduniversestomonomorphicandthenpolymorphictype

systemsisreviewed.Mechanismsforpolymorphismsuchasoverloading,coercion,subtyping,and

parameterizationareexamined.Aunifyingframeworkforpolymorphictypesystemsisdevelopedinterms

ofthetypedλ-calculusaugmentedtoincludebindingoftypesbyquantificationaswellasbindingofvalues

byion.

Thetypedλ-calculusisaugmentedbyuniversalquantificationtomodelgenericfunctionswithtype

文档评论(0)

152****8708 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档