From: Thomas Walker Lynch
Date: Mon, 27 Jul 2026 11:02:41 +0000 (+0000)
Subject: couple function 'accept' should be 'given' nits
X-Git-Url: https://git.reasoningtechnology.com/%27%20%20%20window.RT.dirpr_library%20%20%20%27/%27%20%20%20key%20%20%20%27?a=commitdiff_plain;h=08848c9ad50027ae083c3706b2cfa54973a4c2ad;p=RT-Style
couple function 'accept' should be 'given' nits
---
diff --git a/developer/document/RT-code-format.html b/developer/document/RT-code-format.html
index af29ba0..0bf33a5 100644
--- a/developer/document/RT-code-format.html
+++ b/developer/document/RT-code-format.html
@@ -33,7 +33,7 @@
It is too much of an ask to remove the word 'object' from the English language, and then set it aside and give it a esoteric technical meaning. This is why the term is often misused. So we instead talk about an as being a set of functions that share one or more state variables. The term is then a collection of such state variables and their values sitting in memory. Interface functions are usually grouped within a named container, and state variables are often grouped into a single named data structure.
- In some languages the instance occurs to the left of a lower dot (period) operator and is referred to as from inside the interface functions. In other languages there is a convention where the instance is passed in as the first parameter to interface functions. There can also be interface functions that accept multiple instances of the same type. Bridge interfaces can be created that accept two instances potentially of different types.
+ In some languages the instance occurs to the left of a lower dot (period) operator and is referred to as from inside the interface functions. In other languages there is a convention where the instance is passed in as the first parameter to interface functions. There can also be interface functions that are given multiple instances of the same type. Bridge interfaces can be created that are given two instances potentially of different types.
Since we have released from captivity, a programmer can talk about math objects, as things found in mathematics, and C objects, as things found in the C language, even though they are not instantiated from classes, or might not even be data. For example, the is a C object.
@@ -215,7 +215,7 @@
To avoid the "String Trap" (where logic is tightly coupled to the terminal and requires string serialization to reuse) executable modules must separate the Command Line Interface from the core logic.
- - Work Functions: Implement core logic. They accept and return native instances (ints, lists, paths), never look at (or equivalent), and do not depend on being run from a command line.
+ - Work Functions: Implement core logic. They are given and return native instances (ints, lists, paths), never look at (or equivalent), and do not depend on being run from a command line.
- CLI Function: The bridge between the OS and the Work Function. It is always named . It parses string arguments into native types, calls the Work Function, formats the output for the user, and translates exceptions into exit codes.