Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

List::Objects::WithUtils::Role::Hash::Immutable - Immutable hash behavior

Author

       Jon Portnoy <avenj@cobaltirc.org>

perl v5.38.2                                       2024-03-07              List::Objects:...Hash::Immutable(3pm)

Description

       This role adds immutable behavior to List::Objects::WithUtils::Role::Hash consumers.

       The following methods are not available and will throw an exception:

         clear
         set
         maybe_set
         delete

       (The backing hash is also marked read-only.)

       See List::Objects::WithUtils::Hash::Immutable for a consumer implementation.

Name

       List::Objects::WithUtils::Role::Hash::Immutable - Immutable hash behavior

Synopsis

         # Via List::Objects::WithUtils::Hash::Immutable ->
         use List::Objects::WithUtils 'immhash';
         my $hash = immhash( foo => 1, bar => 2 );
         $hash->set(foo => 3);  # dies

See Also