I've come to the conclusion that it's a courtesy to the user to
reduce the need to use \directlua wherever possible ...
Use case: In a document preamble it is with this patch possible to write
\RequirePackage[%
left=\lyuseoption{my_opts}{layout_left},%
right=\lyuseoption{my_opts}{layout_right},%
]{geometry}
rather than having to call `my_opts:use_option(layout_left)` in a `\directlua` clause
I've come to the conclusion that it's a courtesy to the user to reduce the need to use \directlua wherever possible ...
Use case: In a document preamble it is with this patch possible to write