rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re:  else if not (Re: wishlist)
@ 1993-05-26 17:24 Paul Haahr
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Haahr @ 1993-05-26 17:24 UTC (permalink / raw)
  To: richard; +Cc: rc

> The if/else `problem' has always struck me as really stupid.

the only if/else problem in rc is that it's not compatible with td's rc.
the reason is that if not semantics are awful, as is acknowledged in the
rc paper.  Byron introduced this one change because he thought it was an
improvement worth being incompatible with the plan 9 version.  i agree
with him; the last time we hashed this out on the list it seemed that
was the consensus.

> BCPL and
> LISP get it right.

that's a matter of opinion.  Byron and i picked scheme's cond semantics
for es, because we thought that was right.

paul


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: else if not (Re: wishlist)
  1993-05-26  9:34 ` else if not (Re: wishlist) Richard Brooksby
@ 1993-05-26 17:52   ` Chris Siebenmann
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Siebenmann @ 1993-05-26 17:52 UTC (permalink / raw)
  To: rc

 I believe Tom Duff has said in the past that 'if not' was a gory
hack that he was trying hard to get rid of. I consider this a good
reason not to introduce it back into Byron's rc.

	- cks


^ permalink raw reply	[flat|nested] 3+ messages in thread

* else if not (Re: wishlist)
  1993-05-26  6:57 wishlist Bengt KLEBERG
@ 1993-05-26  9:34 ` Richard Brooksby
  1993-05-26 17:52   ` Chris Siebenmann
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Brooksby @ 1993-05-26  9:34 UTC (permalink / raw)
  To: rc

bk@analytikerna.se (Bengt KLEBERG) wrote:

> I also think 'if not' was cute and would happily fix the (very) few
> 'else' that I have if I got it back.

The if/else `problem' has always struck me as really stupid.  BCPL and
LISP get it right.  Just do this:

  if(<condition>) {<true clause>} else {<false clause>}

  when(<condition>) {<true clause>}

Ho hum.
---
Richard Brooksby <richard@harlequin.co.uk>
ML Project / Symbolic Processing Division / Harlequin
+44 223 872522


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1993-05-26 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-05-26 17:24 else if not (Re: wishlist) Paul Haahr
  -- strict thread matches above, loose matches on Subject: below --
1993-05-26  6:57 wishlist Bengt KLEBERG
1993-05-26  9:34 ` else if not (Re: wishlist) Richard Brooksby
1993-05-26 17:52   ` Chris Siebenmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).