Tree shaking
(import (shake (scheme base)))
imports only symbols used in the codes below.
- Not in R7RS
- It's technically the same as
(import (only (scheme base) ...))
enumerating all used symbols.
- Definitions are not removed like JavaScript/TypeScript's tree shaking.
(import (shake (scheme base)))
(write-string "Hello, world!")