arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.14586cs.PL
收藏

《轻量级围棋》的传典翻译

A Dictionary-Passing Translation of Featherweight Go

Martin Sulzmann, Stefan Wehr

摘要:

Go程序设计语言是一种越来越流行的语言,但它的一些功能缺乏正式的研究。本文通过将Featherweight Go语言翻译成一种简单的目标语言来解释Go语言对重载方法的解析机制及其对结构子类型的支持。翻译采用了Haskell中类型类的字典传递形式,并保留了Featherweight Go程序的动态行为。

英文摘要:

The Go programming language is an increasingly popular language but some of its features lack a formal investigation. This article explains Go's resolution mechanism for overloaded methods and its support for structural subtyping by means of translation from Featherweight Go to a simple target language. The translation employs a form of dictionary passing known from type classes in Haskell and preserves the dynamic behavior of Featherweight Go programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑