Somewhat related: maybe it would be good to have some character-sequence that represents a module accessor in the host language?
For example, something like "mac#Math**sqrt" could be translated to "Math.sqrt" by atscc2[x], depending on what the module system uses for namespaces.
From an implementation standpoint, the accessor notatiion might be a rather bad idea ( we'd be converting functions named "Math_052__052_sqrt" to "Math.sqrt" ). Still, maybe there
are ways to make it better.
Beyond making FFI easier, we'd also be able to package the prelude as a module in the host language, which may have benefits (integration, bundling, tree-shaking, etc) over
methods like concatenation.
Just a thought....
A while ago, I had attempted to add [es6, commonjs, IIFE, UMD] module support to atscc2js. Though it worked with a single file, I decided it had little benefit over inline code blocks if there is no [easy] way to access functions from the generated modules.