User loginNavigation |
Extending the Scope of Syntactic AbstractionExtending the Scope of Syntactic Abstraction by Oscar Waddell and R. Kent Dybvig, POPL '99. (Also: Waddell's thesis with the same title.)
This paper is probably known to many LtUers, but it's never been posted, and I find it very enjoyable. It introduces two very simple forms, Module names are lexically scoped just like variables, and modules can appear wherever definitions can occur, so one can define modules (say) inside a lambda. Furthermore, modules and import forms may also be generated by macros. They show how more advanced features (such as qualified references ("module::var"), anonymous modules, selective importing and renaming, and mutually recursive modules, among others) can be built on top of this simple base using a hygienic macro system, cleverly and without much fuss. Side note: such a "syntactic" module system can be contrasted with R6RS's "static" library system. There is currently some discussion to this effect in the Scheme community. By Manuel J. Simoni at 2010-02-28 06:59 | General | Software Engineering | other blogs | 20267 reads
|
Browse archivesActive forum topics |
Recent comments
1 week 2 days ago
5 weeks 3 days ago
6 weeks 17 hours ago
6 weeks 17 hours ago
8 weeks 8 hours ago
8 weeks 8 hours ago
8 weeks 3 days ago
8 weeks 3 days ago
9 weeks 2 days ago
10 weeks 2 days ago