...
首页> 外文期刊>Logical Methods in Computer Science >Covariance and Controvariance: a fresh look at an old issue (a primer in advanced type systems for learning functional programmers)
【24h】

Covariance and Controvariance: a fresh look at an old issue (a primer in advanced type systems for learning functional programmers)

机译:协方差和纠结性:新问题的新闻(用于学习功能程序员的先进类型系统的底漆)

获取原文
           

摘要

Twenty years ago, in an article titled "Covariance and contravariance:conflict without a cause", I argued that covariant and contravariantspecialization of method parameters in object-oriented programming haddifferent purposes and deduced that, not only they could, but actually theyshould both coexist in the same language. In this work I reexamine the result of that article in the light of recentadvances in (sub-)typing theory and programming languages, taking a fresh lookat this old issue. Actually, the revamping of this problem is just an excuse for writing anessay that aims at explaining sophisticated type-theoretic concepts, in simpleterms and by examples, to undergraduate computer science students and/orwilling functional programmers. Finally, I took advantage of this opportunity to describe some undocumentedadvanced techniques of type-systems implementation that are known only to fewinsiders that dug in the code of some compilers: therefore, even expertlanguage designers and implementers may find this work worth of reading.
机译:二十年前,在一篇名为“协方差和抵押品:不带原因的冲突”的文章中,我认为对面向对象的编程中的方法参数的协调和兼容性化,并推导出来,不仅可以推断,而且实际上他们都应该共存相同的语言。在这项工作中,我根据(子)键入理论和编程语言的依赖,重新审视该文章的结果,这是一个新的问题。实际上,对这个问题的改造只是写作anessay的借口,该借口旨在解释精致的理论理论,以简单的方式和例子来解释本科计算机科学生和/或者职能程序员。最后,我利用了这个机会来描述只有在某些编译器代码中挖掘的类型系统实现的一些未表达的技术,这些技术仅仅是挖掘的人:因此,甚至专业人员设计师和实施者甚至可能会发现这项工作价值。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号