计算机科学 > 程序设计语言
[提交于 2019年5月16日]
标题:Extending OCaml's 'open'
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We propose a harmonious extension of OCaml's 'open' construct. OCaml's existing construct 'open M' imports the names exported by the module 'M' into the current scope. At present 'M' is required to be the path to a module. We propose extending 'open' to instead accept an arbitrary module expression, making it possible to succinctly address a number of existing scope-related difficulties that arise when writing OCaml programs.
提交历史
来自:EPTCS[v1] 2019年5月16日 星期四 06:11:17 UTC