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
Feature Request: trait for unimplemented subs/methods #6291
Comments
From @BenGoldberg1There should be a trait, called either nyi or unimplemented (choose your Alternatively, a slightly more generic solution might be more useful: role AutoDie[$class, $message?] { sub foo does AutoFail[X::NYI, "Sorry, we haven't gotten to foo yet!"] {...} |
From @zoffixznetOn Mon, 29 May 2017 16:03:29 -0700, ben-goldberg@hotmail.com wrote:
Thank you for the suggestion. However, I don't believe there's any serious demand for this feature, to justify it being included in core. In fact, `does AutoFail[X::NYI, "Sorry, we haven't gotten to foo yet!"] ` is 1 MORE characters to type than `die X::NYI.new: :feature<Sorry, we haven't gotten to foo yet!>` Perhaps, you could publish it as a module: https://docs.perl6.org/language/modules |
The RT System itself - Status changed from 'new' to 'open' |
@zoffixznet - Status changed from 'open' to 'rejected' |
From @AlexDanielBut we already have ..., !!! and ???. Isn't it what you want? <AlexDaniel> m: sub foo() { … }; foo On 2017-05-29 16:03:29, ben-goldberg@hotmail.com wrote:
|
From 1parrota@gmail.comThat is so easy for a programmer to implement; I have an "nyi" |
From @geekosaurAs already mentioned, we have three such stubbers already. You can even put What none of them will do for you is allow a syntactically incorrect body. On Tue, May 30, 2017 at 10:21 AM, Parrot Raiser <1parrota@gmail.com> wrote:
-- |
Migrated from rt.perl.org#131398 (status was 'rejected')
Searchable as RT131398$
The text was updated successfully, but these errors were encountered: