iyo is using HOF with builder pattern sometimes ba...
# announcements
a
iyo is using HOF with builder pattern sometimes bad because people can execute arbitrary code in them?
k
Just let people execute code if they want? I don't even think there's a way to do DSLs without HOF.
(FYI: you might want to put a
@DslMarker
on your builders)
a
any way to make @DslMarker work for the
execute
HOF?
this is an excerpt
Copy code
subCmd("subcmd2") {
                execute { sender, _, args ->
                    sender.sendMessage("Ran subcmd 2")
                }
            }