From 0b522e1f0634c6b78834d53173ee35e44a338b61 Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Tue, 15 Aug 2023 16:36:58 +1000 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a1e816..15095a4 100644 --- a/README.md +++ b/README.md @@ -435,8 +435,10 @@ not the subset of ValueScript that has actually been implemented. - Iterators - Spread operator on iterables - Generators -- Structural comparison (not yet for class instances) +- Structural comparison - `{} === {} -> true` + - `new Point(1, 2) === new Point(1, 2)` + - `(() => {}) === (() => {})` - JS: `-> false` - This is a value semantics thing - objects don't have identity - TypeScript enums @@ -476,7 +478,6 @@ not the subset of ValueScript that has actually been implemented. - Uses `.toString()` to get the source code and compiles and runs it in WebAssembly - C libraries, and bindings for python etc -- Comparison of class instances and functions - Object spreading - Rest params - Async functions