Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property: add getter to know whether a property can be assigned to or not #74

Closed
lemirep opened this issue Jun 11, 2024 · 2 comments
Closed

Comments

@lemirep
Copy link
Contributor

lemirep commented Jun 11, 2024

When a property is assigned a binding, trying to assign a value or another binding to it will result in an exception.

Having a small getter e.g isBinding() would be a nice convenience to allow users to check whether reassigning to a property is safe or not without having to try/catch.

@seanharmer
Copy link
Contributor

Sounds good to me. Maybe hasBinding() or hasBindingAttached()?

@LeonMatthesKDAB
Copy link
Contributor

Done as of #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants