Terminating the control information with an unbalanced ) would be OK with me.

Henry Rich

On 1/5/2023 5:43 PM, Raul Miller wrote:
{{)a 5!:5<'u_:'}} does not work, but I think it (or something close to
it) eventually should.

Currently {{)a u}} is a domain error.

The relevant text from nuvoc is
https://code.jsoftware.com/wiki/Vocabulary/DirectDefinition#Non-nouns_defined_with_.7B.7B.29

"If the character following {{) is not n, all following non-comment
words are reserved for control information for the definition.
Currently no such control information has been defined, so no other
words are allowed."

I think it would make sense to eventually allow space as a separator
between the control information and the definition. The motivation
here would be to allow single line direct definitions of arbitrary
non-nouns.

However, depending on plans, perhaps a better option would be to
require an additional unbalanced right parenthesis to terminate any
such list of "control words"?

I can open this as an issue on github, but I figured I should first
expose the idea to a round of criticisms here. (And I can't think of a
better forum, since this is about a recently introduced language
change.)

Thanks,


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to