SetReplace icon indicating copy to clipboard operation
SetReplace copied to clipboard

Information instead of global variables

Open maxitg opened this issue 4 years ago • 2 comments

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.

maxitg avatar Mar 01 '20 00:03 maxitg

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 (* ? *)
|>

daneelsan avatar Nov 28 '20 01:11 daneelsan

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.

maxitg avatar Jan 12 '21 18:01 maxitg