Skip to content

chore: modules#9

Open
AdrienChampion wants to merge 2 commits intoalgebraic-dev:mainfrom
anzenlang:modules
Open

chore: modules#9
AdrienChampion wants to merge 2 commits intoalgebraic-dev:mainfrom
anzenlang:modules

Conversation

@AdrienChampion
Copy link

Switch to lean modules.

Currently, a file cannot be a module if it imports non-modules-sources such as colorized's, so this PR makes colorized importable by module files.

The only change in the API is the introduction of public functions Colorized.colorizeString and Colorized.stylizeString. Public Colorized String instance was using private definitions Colorized.const and Colorized.reset directly, which modules do not allow currently. The public instance now uses these two new functions so that const and reset can stay private.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant