forms
forms copied to clipboard
IControl::setValue() ⇒ setCurrentValues()
to solve #114
Looks like pointless BC break to me.
Point https://github.com/nette/forms/issues/114
I never did not fully understand (or remember) difference between setValue
and setDefaultValue
and I am using it wrong for sure (at least I think). I am totally supporting some kind of change because there would be a lot of similar developers with the same problem as I have... :)
I'm aware of the point, but I think that the number of people who accidentally use setValue
is very low.
I like an idea (setValue
-> setCurrentValue
) , but it's inconvenient BC break. Unfortunatelly, I don't see any other way.
Current states confuses people
My recommendation is to revert marking setValues
/ setValue
as internal.
Just yesterday I have encountered the same weid feeling if I'm doing something wrong. (I was not)
This is a problem where is no simple and right solution.