Currently bind-generators isn't lazy on the first binding, and isn't lazy on the body if there are no bindings. This PR changes this to make bind-generators lazy in all cases. This does change the behavior from being exactly that of nested calls to generator-bind, but I think that it is less confusing to be consistently lazy in all cases.
This also fixes an exponential code duplication issue with bind-generators that I can split into a different pull request if the behavior change is undesired.
Currently
bind-generators
isn't lazy on the first binding, and isn't lazy on the body if there are no bindings. This PR changes this to makebind-generators
lazy in all cases. This does change the behavior from being exactly that of nested calls togenerator-bind
, but I think that it is less confusing to be consistently lazy in all cases.This also fixes an exponential code duplication issue with
bind-generators
that I can split into a different pull request if the behavior change is undesired.