1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-07 19:13:02 +00:00

Add compiler optimizations for #1163 - eachp

Should result in much better bytecode in the simple case.
This commit is contained in:
Calvin Rose
2023-05-31 12:26:27 -05:00
parent 77189b6e66
commit 644ac8caf8
2 changed files with 81 additions and 22 deletions

View File

@@ -445,7 +445,7 @@
,(case kind
:each ~(,in ,ds ,k)
:keys k
:pairs ~(,tuple ,k (,in ,ds ,k))))
:pairs ~[,k (,in ,ds ,k)]))
,;body
(set ,k (,next ,ds ,k))))))