Yes, these semantics would meet my need. Actually this definition of if<=> is more convenient for me than if3 was.

Alternative names for consideration: case/comparator, case/order, branch.

(I'm assuming you meant me, "Kevin" Wortman, since the likelihood of someone else with a similar name having the same concern at the same time seems remote. :P )

Kevin Wortman


On Sun, Nov 1, 2015 at 8:12 PM John Cowan <xxxxxx@mercury.ccil.org> wrote:
Dave Wortman asked me to restore the syntax keyword `if3` from SRFI 114.
Its normal syntax is
(if (comparison-procedure obj1 obj2) less-than equal-to-greater-than).
Like `if`, it expands to just one of the arms of the conditional, but
there are three of them.  However, there are no comparison procedures
in SRFI 128, so I've changed the syntax to
(if<=> [comparator] obj1 obj2 less-than equal-to greater-than).
The name is not ideal, but at least it's different enough to avoid
confusion.

Hopefully this variant will serve Dave's need.

Any comments?

--
John Cowan          http://www.ccil.org/~cowan        xxxxxx@ccil.org
Kill Gorgun!  Kill orc-folk!  No other words please Wild Men.  Drive away
bad air and darkness with bright iron!   --Ghan-buri-Ghan
To unsubscribe from this list please goto http://www.simplelists.com/confirm.php?u=JUbZhx3wwpw7hih0GlPLe3M1iX9L0AXJ