We sure do have lazy evaluation!
$obj->log_error( promise { Dumper($some_very_large_structure) } ); package Promises; use overload( '""' => sub { $_[0]->() } ); sub promise (&) { return bless $_[0], __PACKAGE__ }
In reply to Re^4: "Accessors (don't always) break encapsulation"
by diotalevi
in thread "Accessors break encapsulation"?
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |