Back to Search
Start Over
From APIs to languages: generalising method names
- Source :
- DLS
- Publication Year :
- 2015
- Publisher :
- ACM, 2015.
-
Abstract
- Method names with multiple separate parts are a feature of many dynamic languages derived from Smalltalk. Generalising the syntax of method names to allow parts to be repeated, optional, or alternatives, means a single definition can respond to a whole family of method requests. We show how generalising method names can support flexible APIs for domain-specific languages, complex initialisation tasks, and control structures defined in libraries. We describe how we have extended Grace to support generalised method names, and prove that such an extension can be integrated into a gradually-typed language while preserving type soundness.
- Subjects :
- Soundness
Domain-specific language
Syntax (programming languages)
Application programming interface
Computer science
business.industry
Programming language
Extension (predicate logic)
computer.software_genre
Syntax
Feature (linguistics)
Artificial intelligence
Control (linguistics)
business
computer
Smalltalk
Natural language processing
computer.programming_language
Subjects
Details
- Database :
- OpenAIRE
- Journal :
- Proceedings of the 11th Symposium on Dynamic Languages
- Accession number :
- edsair.doi...........e0aa550f8dfa7aba65a8032ab9e0a05f
- Full Text :
- https://doi.org/10.1145/2816707.2816708