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

Simplify Public API : Enable Chaining of Style Methods on Strings #18

Open
Syaw0 opened this issue Nov 14, 2024 · 0 comments
Open

Simplify Public API : Enable Chaining of Style Methods on Strings #18

Syaw0 opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request new version todo Tasks that need to be completed or implemented.

Comments

@Syaw0
Copy link
Owner

Syaw0 commented Nov 14, 2024

To make working with styled text more intuitive and expressive, we want to add extension methods to the String type that allow for chaining of style methods.

Example:

let text = "Hello".red().bold().underline();

Goal: Implement a fluent API for styled text that enables users to easily apply styles to strings using a chain of method calls.

Benefits:

  • Improved readability and expressiveness of code
  • Simplified API usage
  • Reduced boilerplate code
@Syaw0 Syaw0 added enhancement New feature or request todo Tasks that need to be completed or implemented. new version labels Nov 14, 2024
@Syaw0 Syaw0 self-assigned this Nov 14, 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 new version todo Tasks that need to be completed or implemented.
Projects
None yet
Development

No branches or pull requests

1 participant