Graceful Dialects

Abstract

Programming languages are enormously diverse, both in their essential concepts and in their accidental aspects. This creates a problem when teaching programming. To let students experience the diversity of essential concepts, the students must also be exposed to an overwhelming variety of accidental and irrelevant detail: the accidental differences between the languages are likely to obscure the teaching point. The dialect system of the Grace programming language allows instructors to tailor and vary the language to suit their courses, while staying within the same stylistic, syntactic and semantic framework, as well as permitting authors to define advanced internal domain-specific languages. The dialect system achieves this power though a combination of well-known language features: lexical nesting, lambda expressions, multi-part method names, optional typing, and plug gable checkers. Grace’s approach to dialects is validated by a series of case studies, including both extensions and restrictions of the base language.

Authors

Michael Homer, Timothy Jones, James Noble, Kim B. Bruce, Andrew P. Black

Published in

European Conference on Object-Oriented Programming (ECOOP), 2014

The final copy of this publication is available from the publisher.

Resources

PDF
mwh.nz/pdf/ecoop2014
this page
mwh.nz/pubs/ecoop2014
Michael Homer — 2023 d38f60fb