I've started trying to use namespace.interleave, and have hit a few minor bugs so far:
- The
~name option is not documented beyond its existence, and also does not seem to work (the implementation stumbles over parsing it).
- The block after the
~init option is documented as being optional, but non-block usage does not seem to be parsed correctly.
namespace_meta.Exports.Declaration is documented as taking an Identifier, but it does not seem to apply the usual syntax-object coercions (I have to call Syntax.ephemeral_term first in my usage). Also, it seems like that should be generalized to allowing any Name.
Also, would it be possible to make the body a required option as well (so that the only groups immediately nested under namespace.interleave are keyword-prefixed options?). Otherwise, a macro that expands to namespace.interleave needs to check that that body doesn't start with anything that would be recognized as an option (which would usually be erroneous anyways, but still).
I've started trying to use
namespace.interleave, and have hit a few minor bugs so far:~nameoption is not documented beyond its existence, and also does not seem to work (the implementation stumbles over parsing it).~initoption is documented as being optional, but non-block usage does not seem to be parsed correctly.namespace_meta.Exports.Declarationis documented as taking anIdentifier, but it does not seem to apply the usual syntax-object coercions (I have to callSyntax.ephemeral_termfirst in my usage). Also, it seems like that should be generalized to allowing anyName.Also, would it be possible to make the
bodya required option as well (so that the only groups immediately nested undernamespace.interleaveare keyword-prefixed options?). Otherwise, a macro that expands tonamespace.interleaveneeds to check that that body doesn't start with anything that would be recognized as an option (which would usually be erroneous anyways, but still).