Skip to content
Data-Object Immutability
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Data/Object
t
.editorconfig
.gitattributes
.gitignore
.mailmap
.perlcriticrc
.perltidyrc
.travis.yml
CHANGES
INSTALL
LICENSE
Makefile.PL
README
README.mkdn
cpanfile
dist.ini
weaver.ini

README.mkdn

NAME

Data::Object::Immutable - Immutable Object for Perl 5

Build Status

VERSION

version 0.09

SYNOPSIS

use Data::Object::Immutable;

my $object = Data::Object::Immutable->new([1..9]);

$object->isa('Data::Object::Array'); # 1
$object->count; # 9

$object->[0]++; # fatal ... modification of a read-only value attempted

DESCRIPTION

Data::Object::Immutable provides a mechanism for making any Data::Object data type object immutable. An immutable object is an object whose state cannot be modified after it is created; Immutable objects are often useful because they are inherently thread-safe, easier to reason about, and offer higher security than mutable objects.

AUTHOR

Al Newkirk al@iamalnewkirk.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Al Newkirk.

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

You can’t perform that action at this time.