Skip to content

Commit 33c1441

Browse files
Merge branch 'main' into claude/validate-deed
2 parents 5eaf0db + 290979c commit 33c1441

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎README.adoc‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ strongly-typed, affine-typed, WASM-targeting world
3535
----
3636
// face: jaffascript
3737
38-
effect IO {
39-
fn println(s: String) -> ();
40-
}
41-
4238
function main() -{IO}-> () {
4339
const greeting = "Hello, JaffaScript!";
4440
println(greeting);

‎examples/hello.affine‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
// `const`/`let` bindings (let lowers to let mut), brace-delimited
66
// blocks, `===` equality.
77
// face: jaffascript
8-
9-
effect IO {
10-
fn println(s: String) -> ();
11-
}
8+
//
9+
// `println` is the AffineScript builtin, which already carries the `IO`
10+
// effect. Do not declare `effect IO { fn println … }` here: a declared
11+
// effect shadows the builtin, and `eval` then stops with
12+
// "Unhandled effect: println" because nothing handles it.
1213

1314
function main() -{IO}-> () {
1415
const greeting = "Hello, JaffaScript!";

0 commit comments

Comments
 (0)