diff options
author | bptato <nincsnevem662@gmail.com> | 2024-08-09 00:29:31 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-08-09 00:29:31 +0200 |
commit | b6b998bf608f2f82d5b639455b2fd6224b0919e2 (patch) | |
tree | 8dd1e2869b64ac584700b6de034db5c667200954 /doc/hacking.md | |
parent | 4c64687290c908cd791a058dede9bd4f2a1c7757 (diff) | |
download | chawan-b6b998bf608f2f82d5b639455b2fd6224b0919e2.tar.gz |
Update monoucha
Diffstat (limited to 'doc/hacking.md')
-rw-r--r-- | doc/hacking.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/hacking.md b/doc/hacking.md index 665a70ef..99404064 100644 --- a/doc/hacking.md +++ b/doc/hacking.md @@ -95,7 +95,8 @@ either make them `ref`, or use manual RVO (return bool, set var param). #### "result" variable The implicit "result" variable is great until you need to change the -procedure signature or manually inline a proc. Avoid it when possible. +procedure signature or manually inline a proc. Avoid it when possible, +except in short accumulator-style procedures. #### Implicit initialization @@ -133,7 +134,7 @@ Similarly, `varargs[string]` works, but is less efficient than `varargs[JSValue]`. (The former is first converted into a seq, while the latter is just a slice.) -Use `?fromJS[T](ctx, val)` on JSValues manually instead. +Use `?ctx.fromJS(ctx, val, res)` on JSValues manually instead. ### Fixing cyclic imports |