Module paths

Each .mn file is a module. Directories between it and the entry file become dotted namespace segments: shapes/area.mn is shapes.area.

Paths are anchored at the entry directory from every file. There is no relative-import spelling, and a directory alone is not a module unless a matching file exists.

use shapes.area

fn main() {
  println(area.rectangle(3, 4))
}
Output & diagnostics
Expected:
12
Ctrl/⌘+Enter runs the current lesson.