计算机科学 > 程序设计语言
[提交于 2026年7月10日]
标题:Programming with Ellipses
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present the design of a language extension that allows the use of ellipses ("...") in patterns and expressions, which facilitates function definitions on lists that are more succinct and direct than the standard recursive ones. The semantics of ellipsis notation is defined via a program translation that is based on computing least general generalizations of the expressions on the boundary of ellipses. We show that ellipsis notation applies to a wide spectrum of function definitions. Ellipsis notation can also support the teaching of functional programming, and its inherently iterative nature may make it especially helpful to those with an imperative programming background. Like list comprehensions, ellipsis notation provides an attractive tool for functional languages that adds to their syntactic variety and enriches their expressiveness.
提交历史
来自:Martin Erwig[v1] 2026年7月10日 星期五 21:58:59 UTC