You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have a record with age as 32. You then fill out an HTML form and set age to thirty two. Avram will correctly say that this is invalid. The problem is that because it is invalid age.value will be the old value 32. I wonder what we should do? Is this correct behavior? We can't set it to "thirty two" because it is the wrong type. Maybe it should be nil? Or maybe this is just a weird edge case where there is no "correct" way to handle it
The text was updated successfully, but these errors were encountered:
Let's say you have an
age : Int32
field.You have a record with
age
as32
. You then fill out an HTML form and set age tothirty two
. Avram will correctly say that this is invalid. The problem is that because it is invalidage.value
will be the old value32
. I wonder what we should do? Is this correct behavior? We can't set it to"thirty two"
because it is the wrong type. Maybe it should benil
? Or maybe this is just a weird edge case where there is no "correct" way to handle itThe text was updated successfully, but these errors were encountered: