Wu Language
  • Getting Started
  • Writing code
    • Declarations
    • Optionals
    • If and While
    • For
    • Switch
    • Functions
    • Structs
    • Module
    • Traits
Powered by GitBook
On this page
  1. Writing code

Module

Modules are simply scopes of code, that can be indexed like struct instances:

farm: module {
  cow := "moo"
  cat := "mooo"
  fish := "blob"
}

favorite_sound := farm fish

PreviousStructsNextTraits

Last updated 5 years ago