issues
search
janet-lang
/
janet
A dynamic language and bytecode vm
https://janet-lang.org
MIT License
3.43k
stars
221
forks
source link
Optimize nil conditions for while and if
#1269
Closed
primo-ppcg
closed
1 year ago
primo-ppcg
commented
1 year ago
Related: #1267
Updates
specials.c
to simplify more
if
and
while
forms with conditionals comparing against
nil
.
Prunes unnecessary
(jmp 1)
from else-less
if
s whose return value is dropped.
Related: #1267
specials.c
to simplify moreif
andwhile
forms with conditionals comparing againstnil
.(jmp 1)
from else-lessif
s whose return value is dropped.