stuhlmueller / scheme-transforms

Continuation-passing style and closure conversion transforms for r6rs scheme.
12 stars 1 forks source link

Reduce CPS code duplication #5

Open stuhlmueller opened 13 years ago

stuhlmueller commented 13 years ago

Change the cps transform such that the if-clause does not duplicate code: The code for this is in the repository, only commented out currently, as it (together with similar commented out code in the application case) produced a large number of redundant let bindings. Extend the redex transform to reduce unnecessary bindings away and then swap in the commented out code for both cases.