If anybody has strong objections, we need to hear them!


As we have been writing code, I find increasingly that I want to be able
to use a two-legged if. In functional programs this form has fairly
limited value, but in stateful programs it is a very common idiom.

Because of this, I find myself writing:

  (if e-test (begin e-then ())
             ())

a whole lot, purely to work around the fact that an IF form is required
to have two legs.

I finally got tired of this, and I have now added

  (if e-test e-then)

to the spec as a derived form returning unit:

  (if e-test e-then)  =>
  (if e-test (begin e-then ()) ())

shap

_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to