Skip to content
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

Promote DEPRECATE #826

Closed
0rir opened this issue Jan 12, 2023 · 4 comments
Closed

Promote DEPRECATE #826

0rir opened this issue Jan 12, 2023 · 4 comments

Comments

@0rir
Copy link
Contributor

0rir commented Jan 12, 2023

Perl6::World::DEPRECATED is in 'user' code on github. This offers Raku users more facility than is DEPRECATED by allowing the deprecation-version, elimination-version, and the alternative.

There is no apparent reason that deprecation should be constrained to OO code. And in OO, the direct use of DEPRECATED in Callables can look convenient and clear.

Please promote DEPRECATED from an implementation detail to a roasted item.

@JJ
Copy link
Contributor

JJ commented Jan 12, 2023

Sorry, why is this issue in this repo? Wouldn't either problem-solving or the Rakudo repo itself be a better venue for it?

@0rir
Copy link
Contributor Author

0rir commented Jan 12, 2023

In my previous, DEPRECATE should be DEPRECATED in every instance. And profiling shows I found the wrong method, the work is done by Rakudo::Deprecations::DEPRECATED. Edits made.

Thanks, @JJ.

I am asking that DEPRECATED's use beyond is DEPRECATED be specified as part of Raku. That usage being like this:

#!/usr/bin/env raku
sub d(--> Str) {
    DEPRECATED(  'Use-me', 'Since', 'Gone', :what('sub d') );
    'd';
}
d();

@JJ
Copy link
Contributor

JJ commented Jan 12, 2023

In that case, I thing problem-solving is the right venue; it's where new features are proposed and discussed. I can move the issue there if you want.

@0rir
Copy link
Contributor Author

0rir commented Jan 12, 2023

@JJ, Thanks for the education. I'll close here, clean up and move it.

@0rir 0rir closed this as completed Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants