summaryrefslogtreecommitdiff
path: root/chapter12/README.md
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-09-07 09:22:29 -0700
committerThalia Archibald <thalia@archibald.dev>2024-09-07 10:54:48 -0700
commiteccda096c2e8e30f76e4c4a21421243159cd9026 (patch)
treed94f7ba3f46cd2c877e000d260406d084d27fb6f /chapter12/README.md
parent22a129078b27d5244fac5bddd44a1b50cbb79839 (diff)
downloadSimple-eccda096c2e8e30f76e4c4a21421243159cd9026.tar.gz
Simple-eccda096c2e8e30f76e4c4a21421243159cd9026.zip
README includes more design decisions for type names.
Add Or,Xor for completeness.
Diffstat (limited to 'chapter12/README.md')
-rw-r--r--chapter12/README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/chapter12/README.md b/chapter12/README.md
index 4fb18df6..9d5967b9 100644
--- a/chapter12/README.md
+++ b/chapter12/README.md
@@ -12,6 +12,10 @@ f = f+x; // Auto-widen x to 2.0, result is 2.5
f = f+true; // Since bools are just synonyms for integers 0,1 they auto-widen also
```
+There is no corresponding way right now to round a `flt` back to an `int`:
+```java
+int x = 3.14; // error
+```
Here is Newton's method to a square root:
```java