TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Content-Transfer-Encoding:
7bit
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Date:
Mon, 6 Nov 2000 00:23:54 EST
Content-Type:
text/plain; charset="US-ASCII"
MIME-Version:
1.0
Reply-To:
Parts/Attachments:
text/plain (25 lines)
[log in to unmask] (Robin Reaganwrote:

>I've started a new project on my own and I am trying to use as much
>reusable code as possible. The problem (actually more of an
>annoyance) I'm running into is that most of the code I'm trying to
>reuse, has a "use" statement for each "with" statement. When trying
>to debug or just understand what is going on in someone else's code,
>it makes it more difficult to trace where things are coming from
>when the "use" is added for no apparent reason then the convenience
>of typing fewer characters.
>
>For those of you that are distributing reusable code, you might want
>to think about this as it makes your code less readable/reusable
>when there are "use" statements for each "with" (IMHO).

There are (at least) two schools of thought in this area,
so the concept of reusing components that were developed
under a different style is bound to lead to a conflict of
style.  Of course in an ideal world, those components you
reuse will just work perfectly and not require debugging :-)

The nice thing about Ada is that "use" clauses within the
reused code do not require you follow the same style in your
own code.

ATOM RSS1 RSS2