fieldenms / tg

Trident Genesis
MIT License
14 stars 7 forks source link

Recognise initial assignment of boolean properties #2260

Open 01es opened 2 months ago

01es commented 2 months ago

Description

Properties of type boolean are the only case where a primitive type is used for a property type. One of the issue with this is that fields that represent such properties attain value false. This makes it cumbersome to assign default value false for boolean properties, which is expected to kick in the full property assignment lifecycle (pre-condition, post-condition), because the value being assigned is the same as the "present" value.

The property assignment logic needs to be enhanced to recognise the case of property initialisation for boolean properties as if it was Boolean.

Expected outcome

Consistent treatment of properties of any type without a need for any workarounds to enforce the property assignment lifecycle.