aboutsummaryrefslogtreecommitdiff
path: root/CHANGES.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-07 22:53:45 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-07 22:53:45 -0500
commit19c8450aa0a9ea008a3e5fd4ec44f7c3761db663 (patch)
tree52295560cc8081d7af0c87b5fbb31bfbaf46a25f /CHANGES.md
parent544b1fb6a70d55bf368b827136cf0f37a26e8288 (diff)
Switch paths to use Result return values instead of fail()
Diffstat (limited to 'CHANGES.md')
-rw-r--r--CHANGES.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 1baafc87..51c4dcb9 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -10,6 +10,17 @@
have tags with member fields and those without.
- Rename `Empty()` to `Present()` for set-like tables.
- Paths are now an `enum Path(AbsolutePath(components:[Text]), RelativePath(components:[Text]), HomePath(components:[Text]))`
+- Added `enum Result(Success, Failure(message:Text))` type for indicating
+ success or failure.
+- Some path methods now use `Result` return types instead of failing:
+ - `Path.append()`
+ - `Path.append_bytes()`
+ - `Path.create_directory()`
+ - `Path.remove()`
+ - `Path.set_owner()`
+ - `Path.write()`
+ - `Path.write_bytes()`
+- `Path.parent()` returns `none` if path is `(/)` (file root)
## v2025-11-30