Version: 4.1

6 Modules

Scheme definitions and expressions are normally written inside of a module. Although a REPL evaluates definitions and expressions outside of a module for exploration and debugging purposes, and although load can evaluate definitions and expressions from a file as if they appeared in a REPL interaction, code that is meant to last for more than a few seconds belongs in a module.

    6.1 Module Basics

    6.2 Module Syntax

      6.2.1 The module Form

      6.2.2 The #lang Shorthand

    6.3 Module Paths

    6.4 Imports: require

    6.5 Exports: provide

    6.6 Assignment and Redefinition