Skip to content

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

@Syaw0

Description

@Syaw0

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestnew versiontodoTasks that need to be completed or implemented.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions