I think whether it is noise depends on what you are doing. There are already a ton of methods for specific tool arguments so I tend to think the noise battle is lost from the start.
if (!arguments.contains("-g")) {
arguments.add("-g");
}
You could go either way, but I like having a list of arguments be a normal List.
That does remind me of another benefit of the __ naming scheme. It won't conflict with the methods on List. tool --add ... is actually pretty likely.
View all comments
Show parent comment
2
u/bowbahdoe Jul 15 '26
I think whether it is noise depends on what you are doing. There are already a ton of methods for specific tool arguments so I tend to think the noise battle is lost from the start.
You could go either way, but I like having a list of arguments be a normal
List.That does remind me of another benefit of the
__naming scheme. It won't conflict with the methods onList.tool --add ...is actually pretty likely.