Personally, I'd change the soft:set boolean param to the string 'reset'. This makes it a lot clearer what the function's doing with the second parameter from the outset, and allows the addition of other parameters if you like.
This looks great.
But what if I need to change the value :by() a given amount? (ie, relative to the current value instead of absolute)
Do you think it's worth implementing it?
ObeyJay wrote:This looks great.
But what if I need to change the value :by() a given amount? (ie, relative to the current value instead of absolute)
Do you think it's worth implementing it?