From ff00e34ef22f06d1ec1d21703b6dd3e3bf3d8ae1 Mon Sep 17 00:00:00 2001 From: Jake Roggenbuck <35516367+JakeRoggenbuck@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:40:01 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index b1edd1d..66e84be 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,11 @@ The following is a Component program to calculate the time dilation observed by ![image](https://github.com/user-attachments/assets/47a51682-a1ce-4cb5-90f3-ab88e58dca9f) +After adding C as a constant and compressing this whole program into a single expression, here is the same code minus the variable assignment. + +![image](https://github.com/user-attachments/assets/9b706345-9ae5-43a5-b9cc-ed7eb083c153) + + ## Error Handling Errors that occur in the interactive interpreter cause the line being interpreted to crash. When this happens, one of the following error messages will be displayed. From a2c6178e681a06abf83cc9ba78d1d969578d2f56 Mon Sep 17 00:00:00 2001 From: Jake Roggenbuck <35516367+JakeRoggenbuck@users.noreply.github.com> Date: Wed, 4 Sep 2024 23:50:12 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 66e84be..d7ab755 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ Variables are statically typed in Component. Here is an example usage of a varia Create an addition function called `foo`. ``` -> x y + func foo +> x y + foo func > 1 2 foo -> 3