summaryrefslogtreecommitdiffhomepage
path: root/doc/style/cpp_style.md
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 20:00:37 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 20:00:37 +0100
commite5636be5b5f8f8b588c8b53c8f269c710305d652 (patch)
tree311204068db765b9b1713b163137efddbfc77bf8 /doc/style/cpp_style.md
parent38cddd5dc02f886e5cb3a0e386f0f7a1e6c8da86 (diff)
chore: update documentation.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'doc/style/cpp_style.md')
-rw-r--r--doc/style/cpp_style.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/style/cpp_style.md b/doc/style/cpp_style.md
new file mode 100644
index 00000000..3069285e
--- /dev/null
+++ b/doc/style/cpp_style.md
@@ -0,0 +1,17 @@
+# NeKernel C++ Style Guide:
+
+## The Basics:
+
+NeKernel uses the Google C++ Style. But applied to low-level systems. We use C++20 and later throughout all of our stack. As we keep iterating over time we will amend this document.
+
+## No Exceptions, Never.
+
+NeKernel bans the usage of exceptions in ne_kernel, ne_bootz, etc.
+Unless it is a program space and not to be deemed performance dependent.
+
+## Templates, Containers, and ZOA over C with Classes.
+
+NeKernel doesn't limit itself to a C++ paradigm, as we may find fitting solutions by exploring other patterns.
+That is why we have such containers like TrueResult, FalseResult, etc...
+
+