Closed garlic0x1 closed 1 month ago
also figure out where *ufix-type*
is because it's saying it's not in the package
also write a comment in the code that this should ideally be done by constant folding, but the benefit is too great to wait for
@garlic0x1 CASE will be a lot nicer than COND. :)
I have an ugly cond block that optimizes
translate-expression
on typetc:node-integer-literal
for inferred types other than regular ints.In the following example,
1
expands to1.0
instead of(from-int 1)
, essentially just doing that work at comptime in the expression translator.Repeatedly checking
tc:tycon-p
is not great but I struggled to create clean control flow here...