which seems to have been done before or came up independently
in D, you have slightly more fine-grained options <open file> scope(exit){<close file>} <actual use of file starts here> <generate opening xml tag> scope(success){<generate closing xml tag>} scope(failure){<some cleanup>} <contents inside that tag are generated here> a spontaneous reaction: In J, I’d like to use generators like fileworker =. workfile thatone 'exitstatus result' =. verb_using_file&.fileworker arg_of_verb or memlocker =. lockmem mutex 'exitstatus result' =. atomic_verb&.memlocker arg_of_verb [do we even need exitstatus?] one could even make them generate adverbs but using &. makes the intent clear so I’d prefer not adding too much syntactic sugar – but as always, there are different tastes and digestive systems (called minds) … so the argument should be passed and the cleanup assigned as the obverse, potentially supplementing the result with an exit status value/error code would that interfere with your ideas? Am 01.05.22 um 07:54 schrieb Elijah Stone:
an idea worth stealing
-- ---------------------- mail written using NEO neo-layout.org ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm