Simple function exporting
Switch branches/tags
Nothing to show
Clone or download
Latest commit 715b8bf Oct 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib oops. fix bump version Oct 28, 2018
LICENSE add license Oct 28, 2018
META6.json bump version Oct 28, 2018
README.md fix typo Oct 28, 2018

README.md

NAME

Exportable - Simple function exporting

SYNOPSIS

Import in module code, and apply trait to exportable subs. Tags work normally

unit module Foo;

use Exportable;

sub foo is exportable { ... }
sub bar is exportable(:b) { ... }
sub baz is exportable(:b) { ... }
sub qux { ... }

Module users can now import subs by name...

use Foo <foo bar baz>;

or with tags...

use Foo :b;  # 'foo' not imported

DESCRIPTION

Exportable makes it simple to export functions from your module without polluting the users namespace. There's not need to write the function name a second time, and/or write your own complicated EXPORT sub.

This module is fairly sparse in what it does on purpose, but if you think there is a glaring omission, raise an issue.