aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter0_basics/lesson02_unqualified_imports/text.html
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-12-21 14:03:41 +0000
committerLouis Pilfold <louis@lpil.uk>2023-12-21 14:03:41 +0000
commit4efb34bd728732101432843ed0bfbeb971272287 (patch)
tree71b3b767c417809d92280cec64424c31c9a475be /src/content/chapter0_basics/lesson02_unqualified_imports/text.html
parent2a6ae1fa5408247c95bf4a7d59e5038342a2a125 (diff)
downloadtour-4efb34bd728732101432843ed0bfbeb971272287.tar.gz
tour-4efb34bd728732101432843ed0bfbeb971272287.zip
Add chapters
Diffstat (limited to 'src/content/chapter0_basics/lesson02_unqualified_imports/text.html')
-rw-r--r--src/content/chapter0_basics/lesson02_unqualified_imports/text.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/content/chapter0_basics/lesson02_unqualified_imports/text.html b/src/content/chapter0_basics/lesson02_unqualified_imports/text.html
new file mode 100644
index 0000000..8fda45e
--- /dev/null
+++ b/src/content/chapter0_basics/lesson02_unqualified_imports/text.html
@@ -0,0 +1,15 @@
+<p>
+ Normally functions from other modules are used in a qualified fashion, with
+ the module qualifier before function name. For example,
+ <code>io.println("Hello!")</code>.
+</p>
+<p>
+ It is also possible to specify a list of functions to import from a module in
+ an unqualified fashion, such as the <code>println</code> function in the code
+ editor. Because it has been imported like this it can be referred to as just
+ <code>println</code>.
+</p>
+<p>
+ Generally it is best to use qualified imports, as this makes it clear where
+ the function is defined, making the code easier to read.
+</p>