comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: using `use' : what is the best practice ?
Date: Tue, 7 Jun 2011 19:25:29 +0200
Date: 2011-06-07T19:25:29+02:00	[thread overview]
Message-ID: <1ofcb8g6dasre.uvhg77u842n6$.dlg@40tude.net> (raw)
In-Reply-To: m21uz560ir.fsf@pushface.org

On Tue, 07 Jun 2011 17:59:08 +0100, Simon Wright wrote:

> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> 
>> P.S. All Ada users are subdivided into use-haters and with-haters. The
>> former are in majority.
> 
> use-haters and use-lovers? Hating "with" would match pretty well with
> hating Ada, I'd have thought!

In

   with P; use P;

the "with P" is meaningless here.

"With" does not carry any useful information for the reader. You have to
manage sets of "with" as you develop your packages. I bet even most
stubborn use-haters do not take the idea of "with" seriously. Because
otherwise they would have to mention *all* implicitly or explicitly
referenced packages in "with" clauses. This mammoth task would go to waste.
Because the information to brings is null, and interesting only to the
compiler-linker. And if you are in favor of dotted names longer than the
source line, why would you need an additional "with" if the source is
already full of package names?

BTW, there is another dichotomy: child packages-haters vs. with-haters.
Package dependencies introduced by children-parent relation are more
evident and less arbitrary than ones by "with." The only problem is that
multiple parents are not allowed.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2011-06-07 17:25 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07 15:32 using `use' : what is the best practice ? milouz
2011-06-07 15:59 ` Simon Wright
2011-06-07 16:22 ` Dmitry A. Kazakov
2011-06-07 16:59   ` Simon Wright
2011-06-07 17:25     ` Dmitry A. Kazakov [this message]
2011-06-07 17:29       ` Simon Wright
2011-06-07 19:38         ` Dmitry A. Kazakov
2011-06-11 14:11           ` Yannick Duchêne (Hibou57)
2011-06-08  9:07       ` Paul Colin Gloster
2011-06-08 11:20         ` stefan-lucks
2011-06-08 16:45           ` Vinzent Hoefler
2011-06-11 14:05       ` Yannick Duchêne (Hibou57)
2011-06-07 17:33 ` Pascal Obry
2011-06-08  2:42   ` Randy Brukardt
2011-06-12  5:09   ` Yannick Duchêne (Hibou57)
2011-06-07 18:51 ` Jeffrey Carter
2011-06-08  0:04   ` Peter C. Chapin
2011-06-07 19:32 ` Anders Wirzenius
2011-06-07 23:38 ` Shark8
2011-06-12  5:19   ` Yannick Duchêne (Hibou57)
2011-06-12  7:55   ` Stephen Leake
2011-06-08  4:25 ` Jerry
2011-06-08  9:31   ` milouz
2011-06-08 17:17     ` Ludovic Brenta
2011-06-08 18:43     ` Jeffrey Carter
2011-06-09 10:40       ` Address arithmetic alternatives milouz
2011-06-09 11:25         ` Georg Bauhaus
2011-06-09 18:53         ` Jeffrey Carter
2011-06-08 19:22     ` using `use' : what is the best practice ? Pascal Obry
2011-06-09  1:17     ` Shark8
2011-06-09 10:44       ` milouz
2011-06-08  6:06 ` stefan-lucks
2011-06-15  2:25 ` Adrian Hoe
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox