rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: "Mark K. Gardner" <mkgardne@cs.uiuc.edu>
To: rc@hawkwind.utcs.toronto.edu
Subject: if Suggestion
Date: Tue, 4 Mar 1997 09:57:32 -0500	[thread overview]
Message-ID: <199703041457.IAA09534@pertsserver.cs.uiuc.edu> (raw)

Since Byron is beginning work on a new official version of RC, I would
like to make a suggestion about the if statement.

One of the things which attracted me to RC initially was its "more
C-like syntax than csh". However, I find myself wanting to have an
optional else-if clause in the if statement. I realize that there are
other ways of expressing the same control flow, but either they look
very cumbersome to me (nested if statements) or I get lost in
complexity of expressions connected by && and ||. Is it heresy to
suggest that we add an optional else-if to the if statement? I am not
opposed to the keyword "elsif" (as used in several other languages) to
avoid the dangling else problem. (There goes the likeness to C!)

-- 
Mark K. Gardner (mkgardne@cs.uiuc.edu)
University of Illinois at Urbana-Champaign
Real-Time Systems Laboratory
-- 


             reply	other threads:[~1997-03-04 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-04 14:57 Mark K. Gardner [this message]
1997-03-04 16:20 erik quanstrom
1997-03-04 16:28 ` if Suggestion Mark K. Gardner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199703041457.IAA09534@pertsserver.cs.uiuc.edu \
    --to=mkgardne@cs.uiuc.edu \
    --cc=rc@hawkwind.utcs.toronto.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).