[Issue 8155] Deprecate std.range.lockstep

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 5 16:34:14 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8155



--- Comment #7 from bearophile_hugs at eml.cc 2012-06-05 16:36:14 PDT ---
(In reply to comment #6)

> You might introduce a new template tomorrow, and then remove it a month later,
> so why should I even bother coding against such a library? Is Phobos someone's
> playground or a standard library?

Take a look at the Phobos2 changelog for DMD 2.060. There are functions and
four whole modules removed from Phobos2:
https://github.com/D-Programming-Language/phobos/blob/08a62cdaaa37fd7168bb6bf0d63f00ead1eeb4d0/changelog.dd

I think two more modules will be removed in August this year. Phobos2 is young
still, it contains many mistakes, so it's better to fix it. In some years the
rate of deprecation will probably decrease.

In D there is the deprecated keyword, and other things that help the
deprecation process. They are meant to be used. I am not asking to remove
lockstep() today, I suggest to follow a normal sane path of announcing a
deprecation, deprecate it some months later (but keep it for a year or so) and
then remove it.

Removing redundant/bad/broken functions/things from Phobos is useful, because
it reduces the efforts to learn to use D+Phobos. A bit of growing pain is
acceptable, especially in the first years, if they spare a bigger amount of
pain/work/confusion later.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list