From import statement

After the from keyword, a module name followed by an import to list the symbols one likes to use without explicit full qualification:

  1. from std/strutils import `%`
  2. echo "$1" % "abc"
  3. # always possible: full qualification:
  4. echo strutils.replace("abc", "a", "z")

It’s also possible to use from module import nil if one wants to import the module but wants to enforce fully qualified access to every symbol in module.