Skip to content

Commit

Permalink
Merge branch 'main' of github.com:JakeRoggenbuck/component
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Sep 5, 2024
2 parents f6a7602 + a2c6178 commit feb34a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit feb34a1

Please sign in to comment.