summaryrefslogtreecommitdiff
path: root/AGENT.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-11-25 22:32:54 +0200
committerPaul Buetow <paul@buetow.org>2025-11-25 22:32:54 +0200
commitb97e4b19ec9c415cd5f3d204e23e5fde5180db26 (patch)
treeaf324415c9e0e71724d4a920a62cc4295877dbc0 /AGENT.md
Initial commit: perc v0.0.0 - percentage calculatorv0.0.0
Amp-Thread-ID: https://ampcode.com/threads/T-e4f4a959-8cc6-4ac0-b6fb-2779867e8b2a Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'AGENT.md')
-rw-r--r--AGENT.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/AGENT.md b/AGENT.md
new file mode 100644
index 0000000..c6be708
--- /dev/null
+++ b/AGENT.md
@@ -0,0 +1,5 @@
+* Prefer value semantics over pointer semantics if feasible
+* Have either pointer or value receivers, not both, for methods on a type
+* Have constants, global variables, and type definitions always at the top of the file, before functions and methods
+* Have public functions and method before private ones in the file.
+* constructors must be always the first functions in a file (before all the methods), immediately after type definitions. even if they're non-public.