SetReplace
SetReplace copied to clipboard
Information instead of global variables
There currently exist multiple global variables serving the purpose of documentation, and listing available options/properties/etc. for various functions, such as $WolframModelProperties
, $SetReplaceMethods
, etc.
The better way is to put this data into associations accessible with Information
.
I guess those symbols should be left for backwards compatibility?
Also, what would be the best name for the properties of the object in WolframModel
, (as it can't be "Properties"
):
WolframModel /: Information`GetInformation[WolframModel] := Sort @ <|
"ObjectProperties" -> $WolframModelProperties (* ? *)
|>
I suggest to leave it at "WolframModelProperties"
, i.e., the same name as the constant. It might be overly verbose, but I cannot think of anything better.
Keep in mind that the list of WolframModel
properties is different from the list of WolframModelEvolutionObject
properties because the former does not support properties with arguments.