p5-mop-again-seriously-wtf icon indicating copy to clipboard operation
p5-mop-again-seriously-wtf copied to clipboard

Explore mutable/immutable classes

Open stevan opened this issue 10 years ago • 1 comments

Also explore the idea of a mutable and immutable role/class, possibly this is returned from an API call such as ...

BEGIN {
    my $mutable = mop::util::get_meta( $package_name ); 
}

my $immutable = mop::util::get_meta( $package_name ); 

mop::util::open_class( $package_name => sub {
    my $meta = @_; # mutable instance ...
});

stevan avatar Feb 04 '15 18:02 stevan

Did this in the role-immutable-mutable-split branch in c80131f0bf2400552786aabe5f4fec8779379ba5, not sure I like it.

stevan avatar Feb 05 '15 20:02 stevan