Re: [perl #131398] Feature Request: trait for unimplemented subs/methods

2017-06-01 Thread Parrot Raiser via RT
That is so easy for a programmer to implement; I have an "nyi" subroutine/function in the my skeleton scripts for both Perl 5 and Bash. Is it worth cluttering the language?

Re: [perl #131398] Feature Request: trait for unimplemented subs/methods

2017-05-30 Thread Brandon Allbery via RT
As already mentioned, we have three such stubbers already. You can even put a partial/incomplete implementation after them: just terminate the ... or w/e with a semicolon. What none of them will do for you is allow a syntactically incorrect body. But the proposed feature *also* will not allow

Re: [perl #131398] Feature Request: trait for unimplemented subs/methods

2017-05-30 Thread Parrot Raiser
That is so easy for a programmer to implement; I have an "nyi" subroutine/function in the my skeleton scripts for both Perl 5 and Bash. Is it worth cluttering the language?

[perl #131398] Feature Request: trait for unimplemented subs/methods

2017-05-29 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
But we already have ..., !!! and ???. Isn't it what you want? m: sub foo() { … }; foo rakudo-moar 608e88: OUTPUT: «Stub code executed␤ in sub foo at line 1␤ in block at line 1␤␤Actually thrown at:␤ in block at line 1␤␤» m: sub foo() { !!! }; foo rakudo-moar 608e88: OUTPUT: «Stub code

[perl #131398] Feature Request: trait for unimplemented subs/methods

2017-05-29 Thread Zoffix Znet via RT
On Mon, 29 May 2017 16:03:29 -0700, ben-goldb...@hotmail.com wrote: > There should be a trait, called either nyi or unimplemented (choose your > favorite name and capitalization) which changes the subroutine or method > it's applied to so that, when it's called, it dies or fails with an X::NYI

[perl #131398] Feature Request: trait for unimplemented subs/methods

2017-05-29 Thread Zoffix Znet via RT
On Mon, 29 May 2017 16:03:29 -0700, ben-goldb...@hotmail.com wrote: > There should be a trait, called either nyi or unimplemented (choose your > favorite name and capitalization) which changes the subroutine or method > it's applied to so that, when it's called, it dies or fails with an X::NYI

[perl #131398] Feature Request: trait for unimplemented subs/methods

2017-05-29 Thread via RT
# New Ticket Created by Benjamin Goldberg # Please include the string: [perl #131398] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131398 > There should be a trait, called either nyi or unimplemented (choose your favorite