Background: Every application has user-definable constants. The Java language has the Properties class to handle them.
Question: What is a good and re-usable coding style for setting and changing application level constants in Mathematica?
|
Background: Every application has user-definable constants. The Java language has the Properties class to handle them. Question: What is a good and re-usable coding style for setting and changing application level constants in Mathematica? |
|||
| show 1 more comment |
|
Since it seems like you want constants accessible from a number of applications, why not create a package of constants and start each application by calling the constants you need. You would then change the constants only in the package should they ever need changing.
See: Package development Place package in an appropriate directory so Mathematica can see it. To give your notebooks access to the constants:
Just a sketch but this should give you the idea. |
|||||
|
Javaso your analogy does not help me. – Mr.Wizard♦ Jun 19 '12 at 18:03