Skip to content

Consider using a string as the path type #2

@lpil

Description

@lpil

Hello!

Currently this library represents paths as a 2 variant custom type that each hold a list of strings. I think it would be advantageous to instead use a string:

  • It will make this library easier to use with other libraries. If the path type is defined in this library then any other library that uses it will have to depend on this one, however if it uses a core type than we don't need to add this dep to all other path using libraries.
  • It removes boilerplate from the library as there's less wrapping and unwrapping to get to and from the input strings and strings to be given to the path using functions.
  • It makes FFI easier as it's the same type that both targets use.
  • It is conceptually simpler and easier to read.

Thanks,
Louis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions