Skip to content

Move trim argument of filter to keyword? #2

Description

@jariji

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions