The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 0.08

SYNOPSIS

    package Checkout;

    use Data::Object::Class;

    with 'Data::Object::Role::Immutable';

    has cart => ( is => 'rw' );

    1;

DESCRIPTION

Data::Object::Role::Immutable provides a mechanism for making any object derived from a Data::Object based class 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 <anewkirk@ana.io>

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.