From 7d30b9a5e50676881e47fb3ee87b65db4b020493 Mon Sep 17 00:00:00 2001
From: Louis Pilfold Here is a program that prints out the text "Hello, Joe!".
- Here is a program that prints out the text "Hello, Joe!".
-
- It does this by using the `println` function which has been imported from the
-
diff --git a/src/content/chapter0_basics/lesson05_floats/text.html b/src/content/chapter0_basics/lesson05_floats/text.html
index 497bb13..cc993c4 100644
--- a/src/content/chapter0_basics/lesson05_floats/text.html
+++ b/src/content/chapter0_basics/lesson05_floats/text.html
@@ -1,8 +1,7 @@
+ Gleam's
- Gleam's
- Unlike many languages Gleam does not have a `NaN` or `Infinity` float value.
+ Unlike many languages Gleam does not have a
Gleam's numerical operators are not overloaded, so there are dedictated
@@ -13,7 +12,9 @@
JavaScript runtimes.
- The
Functions and other definitions can be marked as deprecated using the
- `@deprecated` attribute.
+
If a deprecated function is reference the compiler will emit a warning,
diff --git a/src/content/chapter2_flow_control/lesson02_variable_patterns/text.html b/src/content/chapter2_flow_control/lesson02_variable_patterns/text.html
index 8154979..b3e4000 100644
--- a/src/content/chapter2_flow_control/lesson02_variable_patterns/text.html
+++ b/src/content/chapter2_flow_control/lesson02_variable_patterns/text.html
@@ -1,7 +1,8 @@
The case expression is the most common kind of flow control in Gleam code. It
- is similar to `switch` in some other languages, but more powerful than most.
-gleam/io
+ It does this by using the println
function which has been
+ imported from the
+ gleam/io
module, which is part of the Gleam standard library.
Float
type represents numbers that are not integers.Float
type represents numbers that are not integers.
-NaN
or
+ Infinity
float value.
gleam/float
+ The
+ gleam/float
standard library module contains functions for working with floats.
@deprecated
+ attribute.
switch
in some other languages, but more powerful
+ than most.
+
It allows the programmer to say "if the data has this shape then run this code", a process called called pattern matching.