I was thinking about a macro like "enclose the argument in (...) , or in some other delimiter you give me"
\NewDocumentCommand{\bracketit}{ E{l}{\lparen} m E{r}{\rparen} }{%
#1{#2}#3%
}
so it "works", I suppose: \bracketit l! foobar r! ==gives==> !foobar!
(the initial goal wasn't that, was to make a macro to keep me from forgetting closing )'s in logic formulas. because they usually use ()'s, but might also use []'s and {}'s, I'd rather have some way to manually specify the delimiters)