Re: Do you currently use namespaces?

new topic     » goto parent     » topic index » view thread      » older message » newer message

ken mortenson wrote:
> 
> Jeremy Cowgar wrote:
> > [SNIP include example]
> > ---- This is proper coding.
> 
> Ah, Jeremy, this is a grand statement.  Especially when demonstrating the
> 'include everything' school of programming.  I see this same problem in 
> Microsoft programmers which is why they have a zillion constants for the
> definition of true and false (all with very precise names) in their code.
> 
> Including fileA and fileB twice is only a little bit of nails on the 
> chalkboard for me, but I can get past that because the language allows it.

It's not a matter of including it twice.  His point was that your code should
include what it needs.  Your statement is actually the antithesis of modular
programming, IMHO.  Each module should explicitly declare its dependencies.
Euphoria has never required this, though it will at least generate a 
warning in 4.0.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu