Talking with @ektrah, the use case with constant value properties came up. There is still the need to abstract a value of a Thing as a property but that never changes. A basic solution is to put const:myValue in the property and implement a behavior in the Consumer to not look into forms if const appears in the property level. The protocol can be anything, better to make it obvious that is not used.
What do others think?
Talking with @ektrah, the use case with constant value properties came up. There is still the need to abstract a value of a Thing as a property but that never changes. A basic solution is to put
const:myValuein the property and implement a behavior in the Consumer to not look intoformsifconstappears in the property level. The protocol can be anything, better to make it obvious that is not used.What do others think?