TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

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

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

Print Reply
Carlisle Martin C Dr USAFA/DFCS <[log in to unmask]>
Thu, 5 Oct 2000 14:10:11 -0600
text/plain (18 lines)
STEPHEN>The rule is simple.  With Pascal semicolons separate statement and
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
   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.