Skip to content

Setting to expose constructors of immutable objects #1335

Answered by al-fisher
IsakNaslundBh asked this question in Ideas
Discussion options

You must be logged in to vote

My gut here is to not add the complexity of a UI settings or new feature to handle this.

The approach of adding an explicit create method is actually quite flexible and powerful allowing space in the code for good Descriptions and Annotations as to reason for the exposing create method existing, use and requirements etc.

Also allows the placement of this specific Create method exposing all properties directly in a different .dll to perhaps the reset of the related engine methods. i.e. if you want methods for dataset creation or testing - these can be separated from the general use engines - and not included in general release installers etc.
This could be something we formalise guidance a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@IsakNaslundBh
Comment options

IsakNaslundBh Jan 7, 2022
Maintainer Author

@adecler
Comment options

Answer selected by IsakNaslundBh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants