From f70130322cd306268c5da12c1517dc5725615ae8 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 15 Feb 2024 12:18:17 +0000 Subject: text -> en --- .../lesson04_option_module/en.html | 16 ++++++++++++++++ .../lesson04_option_module/text.html | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 src/content/chapter4_standard_library/lesson04_option_module/en.html delete mode 100644 src/content/chapter4_standard_library/lesson04_option_module/text.html (limited to 'src/content/chapter4_standard_library/lesson04_option_module') diff --git a/src/content/chapter4_standard_library/lesson04_option_module/en.html b/src/content/chapter4_standard_library/lesson04_option_module/en.html new file mode 100644 index 0000000..0c66b25 --- /dev/null +++ b/src/content/chapter4_standard_library/lesson04_option_module/en.html @@ -0,0 +1,16 @@ +

+ Values in Gleam are not nullable, so the + gleam/option + standard library module defines Gleam's Option type, which can be + used to represent a value that is either present or absent. +

+ +

+ The option type is very similar to the result type, but it does not have an + error value. Some languages have functions return an option when there is no + extra error detail to give, but Gleam always uses result. This makes all + fallible functions consistent and removes any boilerplate that would be + required when mixing functions that use each type. +

diff --git a/src/content/chapter4_standard_library/lesson04_option_module/text.html b/src/content/chapter4_standard_library/lesson04_option_module/text.html deleted file mode 100644 index 0c66b25..0000000 --- a/src/content/chapter4_standard_library/lesson04_option_module/text.html +++ /dev/null @@ -1,16 +0,0 @@ -

- Values in Gleam are not nullable, so the - gleam/option - standard library module defines Gleam's Option type, which can be - used to represent a value that is either present or absent. -

- -

- The option type is very similar to the result type, but it does not have an - error value. Some languages have functions return an option when there is no - extra error detail to give, but Gleam always uses result. This makes all - fallible functions consistent and removes any boilerplate that would be - required when mixing functions that use each type. -

-- cgit v1.2.3