in reply to Re: Is ": lvalue" attribute usefull or something to avoid?
in thread Is ": lvalue" attribute usefull or something to avoid?
It is possible to validate the values, it's just traditionally a pain in the arse, because it involves using something like Variable::Magic or returning a tied scalar.
I wrote LV to try to get around these issues, and it does indeed make writing lvalue subs pretty friendly. The primary drawback becomes speed - none of the implementations are as fast as a more traditionally written accessor.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is ": lvalue" attribute usefull or something to avoid?
by BrowserUk (Patriarch) on Feb 12, 2014 at 14:16 UTC | |
by tobyink (Canon) on Feb 12, 2014 at 15:05 UTC |