TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Carlisle Martin C Dr USAFA/DFCS <[log in to unmask]>
Date:
Thu, 5 Oct 2000 14:10:11 -0600
Content-Type:
text/plain; charset="iso-8859-1"
MIME-Version:
1.0
Reply-To:
Carlisle Martin C Dr USAFA/DFCS <[log in to unmask]>
Parts/Attachments:
text/plain (18 lines)
STEPHEN>The rule is simple.  With Pascal semicolons separate statement and
with
STEPHEN>Ada semicolons end them.

I am aware of the rule.  I've even taught the rule!  But, consider:

if (x < y) then
   x := y * 5.0
else
   x := y * 2.0;

Normally x := y * 5.0 would have a semicolon, but now it doesn't based on
its context.  I would argue the statement terminator rule is more intuitive,
because you don't change the rules for a particular line of code based on
what it is next to.

--Martin

ATOM RSS1 RSS2