Help language development. Donate to The Perl Foundation

NYI zef:lizmat last updated on 2022-01-14

fad2a91dd8dcc5abf2d3585d5aebcb979adb1857/

Actions Status

NAME

NYI - Provide shortcut to X::NYI

SYNOPSIS

use NYI;

multi sub frobnicate("insert", |) { NYI "insert a frob" }

DESCRIPTION

Provide a shortcut to doing:

Failure.new: X::NYI.new: feature => "feature";

This can be used as a return value in a subroutine or method:

multi method frobnicate("insert", |) { NYI "insert a frob" }

Or to fail or throw immediately:

fail NYI("insert a frob");

NYI("insert a frob").throw;

Reasons for using this subroutine are:

Should the core of the Raku Programming Language already provide a NYI subroutine, then this module will become a no-op.

AUTHOR

Elizabeth Mattijsen [email protected]

Source can be located at: https://github.com/lizmat/NYI . Comments and Pull Requests are welcome.

COPYRIGHT AND LICENSE

Copyright 2022 Elizabeth Mattijsen

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.