New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove some deprecated code #2475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though this shouldn't be merged until we decide on whether there will be a stable branch (in some form) or releases will continue from master.
Needs a
I'm not quite there yet with having a strict stable branch policy (one example being the slightly breaking change in #2487), so this is fine to merge (but it would be anyway, since this is master). We/I should prepare a wiki page with parts of the API that need to be reworked. Once the low-hanging fruits are done and vibe-http is properly migrated to the new repository, I'd be open to switch to a more formal scheme, even jumping to 1.0.0 could be an option then, deferring the rest of the breaking changes to 2.0.0. |
Would love to see this! Regarding this PR, I'm not so sure removing the |
The really bad thing is that there is no cue in the deprecation warning showing where in the code How would you provide range primitives other than with an |
I've created a wiki page and added all actionable high-level items that I could find from a quick look: https://github.com/vibe-d/vibe.d/wiki/API-Improvements -- there may be some low level issues that I missed now, but most of them are supposedly in the modules that should be moved out of this repository anyway. |
Funny you would mention this: dlang/dmd#11839
struct Bar { int v; }
void main ()
{
Bar b;
foreach (x; b) {}
} $ dmd foo.d
foo.d(5): Error: invalid foreach aggregate b, define opApply(), range primitives, or use .tupleof In this case, I think range primitives would make most sense ( |
Okay, but that's what But the problem with |
Using range primitives you can actually expose only value and rely on
You might be interested in my DConf talk then ;) I don't think I'll be able to come back to this PR this week. I have some deadlines at work, plus the DConf talk which limit my time quite greatly ATM. |
Not for a key-value-map, like in this case, though ;-)
Indeed! |
There is still another use of
|
90aa415
to
5a120be
Compare
This deprecation message unfortunately creeps up in user's code, without the user having a possibility to solve it.
As the message suggests, they should have been removed already.
Should be (finally) G2G |
The
alias this
deprecation in particular is quite painful.