Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving current standard library #20

Closed
thomasvergne opened this issue May 16, 2024 · 0 comments
Closed

Improving current standard library #20

thomasvergne opened this issue May 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed standard Related to the standard library
Milestone

Comments

@thomasvergne
Copy link
Member

While having a new extension system, the standard library should now take advantage of it by providing generic interfaces and defining repetitive behaviors within types. Such basic interfaces should be added:

  • traversable: for everything related to list and list-like data-structures
  • show: to convert a type to a str value
  • numeric: to provide basic algebra on every type (such as string concatenation enabled by the + operator)
  • ordering: to enable ordering on other types than numbers
  • boolean: to provide boolean algebra (and, or, and not functions)
  • default: to define a default value for a type (Haskell equivalent to mempty with Monoid type-class)
  • and other interfaces..

These interfaces would come with their respective basic extensions. For instance, there should be an instance of show for every core data type, as there should also be type extensions of the other core interfaces.

@thomasvergne thomasvergne added enhancement New feature or request help wanted Extra attention is needed labels May 16, 2024
@thomasvergne thomasvergne added this to the Plume 1.0 milestone May 16, 2024
@thomasvergne thomasvergne self-assigned this May 16, 2024
@thomasvergne thomasvergne pinned this issue May 16, 2024
@thomasvergne thomasvergne added the standard Related to the standard library label Jun 18, 2024
@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed standard Related to the standard library
Projects
None yet
Development

No branches or pull requests

1 participant