Closed robertbachmann closed 3 years ago
\public \foo would make \let\foo=\relax in cases were no corresponding \_foo was defined. This would hide typing errors.
\public \foo
\let\foo=\relax
\_foo
\_public \foo ;
\_nspublic \foo ;
\.foo
\_private \foo ;
\_nsprivate \foo ;
\foo
Thank you for this idea. Normally, OpTeX macros generates only warnings but this should be an exception because \private etc. are not used in normal document processing.
\private
\public \foo
would make\let\foo=\relax
in cases were no corresponding\_foo
was defined. This would hide typing errors.\_public \foo ;
so that we get an error message if there is no\_foo
. Users that want the old semantic can explicitly write\let\foo=\relax
\_nspublic \foo ;
so that we get an error message if there is no\.foo
.\_private \foo ;
and\_nsprivate \foo ;
so that we get an error message if there is no\foo
.