Skip to content

Is there a reason for most properties not having setters? #253

Answered by waf
Jan0660 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Jan0660, there's no specific reason for not having setters. The main reason, as you mentioned, is that we can't guarantee that the prompt will behave correctly if properties are being mutated as the prompt is running.

That being said, if you'd like to open a PR for the properties that you need to be settable, I'd be happy to do some testing and merge it. I'd rather expose setters on just the subset of properties that you need, rather than all of them.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jan0660
Comment options

Answer selected by Jan0660
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants