Skip to content

Re-explore scoped variants #41

Description

@paarthenon

Scoped variants, while functional, were created before TS had template literal types. Now that we live in that world, there are most likely better ways to implement scoped variants and more powerful functionality we can include. Perhaps better support for arbitrary separators.

There's also a conversation to be had on what would make the best separators. Some candidates would be

  • ., probably my current favorite. It's clear and concise, but because it's so commonly used to scope things people may already be in the habit of using foo.bar.baz as a key. That would break the functionality intended to separate variant scopes, so another separator might be preferred.
  • ::, classic from C++ and more.
  • | I personally enjoy the aesthetic but more commonly used to pipeline.
  • -
  • /

Metadata

Metadata

Assignees

No one assigned

    Labels

    designA higher-level task that involves some systemic considerationsenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions