Skip to content

Suggestion: split out intersection and stroke code into separate sub-packages (and others..) #347

@rcoreilly

Description

@rcoreilly

It would be a major breaking change, but the code associated with path_intersection and path_stroke is not needed by many use-cases, and could usefully be put into separate sub-packages. I just did this in my version of this code in cogent core, and the remaining top-level basic path code was only 1/3 the previous size. Also, the api footprint for the Path type is much smaller, as this requires converting methods to functions in the packages. This is more conventional Go-style, e.g., with strings having all the string functionality instead of putting everything as methods on the type. The same approach could be taken with all the latex, text, etc stuff as well. Anyway, just a suggestion -- it did take a big chunk out of my day and wasn't much fun, but I'm happy with the result :)

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