NAME

Evo - Perl Evo design pattern

VERSION

version 0.0175

DESCRIPTION

This framowerk opens new age of perl programming It provides rewritten and postmodern features like

  • Rewritten sexy Evo::Export

  • Post modern component oriented programming Evo::Comp instead of OO

  • Fast Event-Loop Evo::Loop with unique feature zones (Not ready)

  • Fast non recursive Evo::Promises, 100% Promises/Spec A compatible

  • Interesting Evo::Realm design pattern, which is as handy as "Singleton" but without Sintleton's flaws. It makes real thing that are considered impossible in other languages. For example, testing EventLoop timers without patching, separating flows for one loop and so on. (ready but experimental and not documented)

  • Exception handling in pure perl: Evo::Eval, "try catch" alternative. Like Try::Tiny, but without it's bugs and much faster

IMPORTING

Load Module and call it's import method, emulating caller.

use Evo 'Evo::SomeComp';
use Evo 'Evo::SomeComp(function)';
use Evo 'Evo::SomeComp(function,otherfunc)';
use Evo 'Evo::SomeComp function1 function2';

Used to make package header shorter

use Evo '-Modern; -Eval *; My::App';

SHORTCUTS

: => . (append to current)
:: => .. (append to parent)
- => Evo (append to Evo)

Import Evo::SomeComp namespace

use Evo '-SomeComp';

Import My::Ns::Foo::Rel:

package My::Ns::Foo;
use Evo ':Bar';

Import My::Ns::Bar:

package My::Ns::Foo;
use Evo '::Bar';

You can split import by ;

package My::Ns::Foo;
use Evo ':Bar bar1; :Baz baz1; Other::Foo foo1';

IMPORTS

With or without options, use Evo loads Evo::Default:

-Default

use strict;
use warnings;
use feature ':5.22';
use experimental 'signatures';
use feature 'postderef';

-Loaded

This marks inline or generated classes as loaded, so can be used with require or use. So this code won't die

require My::Inline;

{
  package My::Inline;
  use Evo -Loaded;
  sub foo {'foo'}
}

AUTHOR

alexbyk.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by alexbyk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.