Wish #DefaultPrivate directive for classes and code modules

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
At the moment, all subs in a code module or class default to public visibility unless the private keyword is used.

This mean that when I am creating a class, I need to remember to add private to all of the subs I do not want to be visible. In certain circumstances there are a great many more private subs than public subs.

It would be great if there could be a new directive

#DefaultPrivate: true

which defaults the scope of all subs to private UNLESS the public keyword is explicitly used.