filter(f, i, trim::Bool) has one of these boolean flag arguments. I don't like these because they're hard to read and dirty up the functional design.
If you feel similarly, some ideas:
filter(f, i ; trim::Bool) (easier to read, at least)
filter(f, i) and trimfilter(f, i) (I tend to like this from a functional multiple dispatch design perspective)
filter(f, i, TRIM) (an enum)
filter(f, i, trim::Bool)has one of these boolean flag arguments. I don't like these because they're hard to read and dirty up the functional design.If you feel similarly, some ideas:
filter(f, i ; trim::Bool)(easier to read, at least)filter(f, i)andtrimfilter(f, i)(I tend to like this from a functional multiple dispatch design perspective)filter(f, i, TRIM)(an enum)