summaryrefslogtreecommitdiff
path: root/docs/DEVNOTES.md
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-24 23:15:49 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-24 23:15:49 +0200
commit7dc326fb8c1dfe4a24f6823d9a1e0a3a2dc8e698 (patch)
tree6421fe220443f323581225b100c32e07d2732ab4 /docs/DEVNOTES.md
parente76e3ba417c0851b14082b97c1b168bba166b1b6 (diff)
update notesarithm
Diffstat (limited to 'docs/DEVNOTES.md')
-rw-r--r--docs/DEVNOTES.md24
1 files changed, 21 insertions, 3 deletions
diff --git a/docs/DEVNOTES.md b/docs/DEVNOTES.md
index 3333943..3413f00 100644
--- a/docs/DEVNOTES.md
+++ b/docs/DEVNOTES.md
@@ -2,11 +2,13 @@
# TODO
## CURRENT
-- arithmetic
-- $(cmd) expansion
+- `~` expansion
+- implement dealiasing conditions correctly
+- heap deallocation
-## NEXT
+## NEXT TOPICS
- fd-based redirects
+- arithmetic
## LATER
- proper error handling
@@ -14,4 +16,20 @@
- extensibility hooks and exposed constant
- freeing allocs
+## EVEN LATER
+- globbing
+
## BUGS
+
+
+# IMPLEMENTATION NOTES
+(for some of the above)
+
+## Proper error handling
+There should be a global error struct with a string buffer, and functions would be adding context to it.
+We could define a Maybe-like _Result_ "generic" with a macro and wrap the return type of most functions in it, and add the checks for this around calls.
+
+We also have to add error checks around stuff that can go wrong. Particularly around:
+- opening files, opening pipes, managing fd-s
+- malloc/free stuff
+- array accesses (should be bounds checked)