kw use
Reserved keyword
The list of words: §1.4
Syntax
Use = "use" Path [ "." ( "*" | "{" ImportList "}" ) | "{" ImportList "}" ] ;Grammar: App. A
Defined in
- 2.2 Import — The first segment of the path MUST be std, self, super or the name of a dependency from oxl.toml.
- 5.3 Overloading and user-defined operators — Overloading built-in operators — op declarations in impl
- 1.4 Keywords — Reserved (cannot be used as names)
Examples
use std.time { Duration, now }
use std.http.{Client as Http}
use self.billing { charge } // a module of one's own package
use super.common { Money } // the parent module
use auth.tokens { verify } // a dependency from oxl.toml
use parsers { <|> } // importing an operator
use std.coll.* // all pub names (a warning in libraries)Related diagnostics
bad-import-root, glob-import, import-conflict, unresolved-import, unresolved-name, not-callable, not-overloadable, operator-decl, range-not-iterable