~technomancy/fennel#141: 
Optimize away useless `if true`

While there is no runtime cost for an (if true x) instead of x, the compiler output would be more readable if it were optimized away by the if special. Similarly the (if x x-body true y-body) could be turned into (if x x-body y-body) instead.

This would make certain macros a little simpler.

Status
RESOLVED CLOSED
Submitter
~technomancy
Assigned to
No-one
Submitted
1 year, 10 months ago
Updated
5 months ago
Labels
enhancement

~technomancy REPORTED CLOSED 5 months ago

Looks like this happened already a while ago and I missed it!

Register here or Log in to comment, or comment via email.