TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Carlisle Martin C Dr USAFA/DFCS <[log in to unmask]>
Reply To:
Carlisle Martin C Dr USAFA/DFCS <[log in to unmask]>
Date:
Thu, 5 Oct 2000 14:10:11 -0600
Content-Type:
text/plain
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