A simple sieve in Phobos?

Marco Leise Marco.Leise at gmx.de
Wed Mar 19 07:10:53 PDT 2014


Am Wed, 19 Mar 2014 10:39:36 +0000
schrieb "bearophile" <bearophileHUGS at lycos.com>:

> Meta:
> 
> > If all that complexity is nicely encapsulated from the user, 
> > then why not put it in some theoretical Phobos package?
> 
> For practical reasons. You have to maintain Phobos code. So you 
> need people that understands the code. A very complex 
> implementation is understood only by few persons. Also a very 
> long piece of code needs more work to be maintained. Every line 
> of code has a live cost.
> 
> Bye,
> bearophile

For starters there are a lot of code blocks that differ only
in 1 or 2 values. These should be extracted into inline
functions with a nice name.

-- 
Marco



More information about the Digitalmars-d mailing list