TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

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

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

Print Reply
Mon, 6 Nov 2000 00:23:54 EST
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