Subject: | Silently throws out arguments to accessors. |
Object::Tiny's accessors are read-only, but they silently throw out
arguments.
$ perl -wle 'package Foo; use Object::Tiny qw(bar baz); package main;
$obj = Foo->new(bar => 23); $obj->bar(42); print $obj->bar'
23
Since immutable objects are not the norm in Perl, people aren't going to
expect it and go ahead and try to set anyway. The lack of a warning or
error will make the resulting bug hard to track down.