JuliaActuary / LifeContingencies.jl

Life Actuarial Maths
Other
42 stars 10 forks source link

Namespace pollution #13

Closed alecloudenback closed 4 years ago

alecloudenback commented 4 years ago

There's a lot of very short characters exported by the module, which pollutes the user's namespace. Some solutions:

  1. Don't export anything and require explicit import
  2. alias some of the basic functions e.g. insurance for A and export the aliases
  3. Keep as is

I'm leaning towards option 2 as the best use case for most people.

alecloudenback commented 4 years ago

v was changed to disc in #19

alecloudenback commented 4 years ago

Current Plan:

Keep the shortened version, but unexported. Export the following:

Don't export the Commutations, but keep their single-letter designations.